We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c3c339 commit 130e2caCopy full SHA for 130e2ca
crates/wasi/src/sockets/udp.rs
@@ -10,7 +10,7 @@ use io_lifetimes::AsSocketlike as _;
10
use io_lifetimes::raw::{FromRawSocketlike as _, IntoRawSocketlike as _};
11
use rustix::io::Errno;
12
use rustix::net::connect;
13
-use std::net::{IpAddr, Ipv4Addr, Ipv6Addr, SocketAddr};
+use std::net::SocketAddr;
14
use std::sync::Arc;
15
use tracing::debug;
16
@@ -217,6 +217,8 @@ impl UdpSocket {
217
if socket.is_ok()
218
&& let UdpState::Default = self.udp_state
219
{
220
+ use std::net::{IpAddr, Ipv4Addr, Ipv6Addr};
221
+
222
let ip_addr = match self.family {
223
SocketAddressFamily::Ipv4 => IpAddr::V4(Ipv4Addr::UNSPECIFIED),
224
SocketAddressFamily::Ipv6 => IpAddr::V6(Ipv6Addr::UNSPECIFIED),
0 commit comments