Explorar o código

Fix accidental conversion of a slice to owned.

This broke #![no_std] builds.
whitequark %!s(int64=7) %!d(string=hai) anos
pai
achega
e052e5195f
Modificáronse 1 ficheiros con 1 adicións e 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
         }
     }