File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -453,20 +453,13 @@ impl Interface {
453453 /// Create a network interface using the previously provided configuration.
454454 ///
455455 /// # Panics
456- /// If a required option is not provided, this function will panic. Required
457- /// options are:
458- ///
459- /// - [ethernet_addr]
460- /// - [neighbor_cache]
461- ///
462- /// [ethernet_addr]: #method.ethernet_addr
463- /// [neighbor_cache]: #method.neighbor_cache
456+ /// This function panics if the [`Config::hardware_address`] does not match
457+ /// the medium of the device.
464458 pub fn new < D > ( config : Config , device : & mut D , now : Instant ) -> Self
465459 where
466460 D : Device + ?Sized ,
467461 {
468462 let caps = device. capabilities ( ) ;
469-
470463 assert_eq ! (
471464 config. hardware_addr. medium( ) ,
472465 caps. medium,
You can’t perform that action at this time.
0 commit comments