Explorar el Código

Fix accidental conversion of a slice to owned.

This broke #![no_std] builds.
whitequark hace 7 años
padre
commit
e052e5195f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/iface/ethernet.rs

+ 1 - 1
src/iface/ethernet.rs

@@ -96,7 +96,7 @@ impl<'b, 'c, DeviceT> InterfaceBuilder<'b, 'c, DeviceT>
             device:              device,
             ethernet_addr:       None,
             neighbor_cache:      None,
-            ip_addrs:            [].into(),
+            ip_addrs:            ManagedSlice::Borrowed(&mut []),
             ipv4_gateway:        None
         }
     }