Fix accidental conversion of a slice to owned.
This broke #![no_std] builds.
This commit is contained in:
parent
8863eb8db1
commit
bf53b73e09
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue