Fix accidental conversion of a slice to owned.

This broke #![no_std] builds.
This commit is contained in:
whitequark 2017-12-18 15:03:38 +00:00
parent 8863eb8db1
commit bf53b73e09
1 changed files with 1 additions and 1 deletions

View File

@ -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
}
}