Create slice using ::Owned

This commit is contained in:
Ulf Lilleengen 2023-02-10 18:32:35 +01:00
parent 6e68353a93
commit 472473d8c1
Failed to extract signature

View file

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