Create slice using ::Owned
This commit is contained in:
parent
6e68353a93
commit
472473d8c1
1 changed files with 1 additions and 1 deletions
|
@ -171,7 +171,7 @@ impl<D: Driver + 'static> Stack<D> {
|
|||
#[cfg(feature = "dhcpv4")]
|
||||
dhcp_socket: None,
|
||||
#[cfg(feature = "dns")]
|
||||
dns_socket: socket.sockets.add(dns::Socket::new(&[], &mut resources.queries)),
|
||||
dns_socket: socket.sockets.add(dns::Socket::new(&[], managed::ManagedSlice::Borrowed(&mut resources.queries))),
|
||||
};
|
||||
|
||||
match config {
|
||||
|
|
Loading…
Reference in a new issue