Przeglądaj źródła

Merge #584

584: Fixes #583 r=Dirbaio a=thibautvdv



Co-authored-by: Thibaut Vandervelden <thvdveld@vub.be>
bors[bot] 3 lat temu
rodzic
commit
e7561f9f80
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/iface/interface.rs

+ 2 - 2
src/iface/interface.rs

@@ -549,7 +549,7 @@ where
         #[cfg(all(feature = "medium-ieee802154", feature = "medium-ethernet"))]
         assert!(
             self.device().capabilities().medium == Medium::Ethernet
-                || self.device().capabilities().medium == Medium::Ethernet
+                || self.device().capabilities().medium == Medium::Ieee802154
         );
 
         self.inner.hardware_addr.unwrap()
@@ -570,7 +570,7 @@ where
         #[cfg(all(feature = "medium-ieee802154", feature = "medium-ethernet"))]
         assert!(
             self.device().capabilities().medium == Medium::Ethernet
-                || self.device().capabilities().medium == Medium::Ethernet
+                || self.device().capabilities().medium == Medium::Ieee802154
         );
 
         InterfaceInner::check_hardware_addr(&addr);