diff options
| author | joboet <jonasboettiger@icloud.com> | 2025-08-12 18:37:07 +0200 |
|---|---|---|
| committer | joboet <jonasboettiger@icloud.com> | 2025-09-08 16:58:43 +0200 |
| commit | 207a01e88f05f028f7a6c0db0d324fbedb8178a4 (patch) | |
| tree | 9665039af87815fc46c76329bcd80d93d2d09499 /library/std/src/net/udp.rs | |
| parent | 41f2b6b39e7526a28d50ff6918dda6de48add5e4 (diff) | |
| download | rust-207a01e88f05f028f7a6c0db0d324fbedb8178a4.tar.gz rust-207a01e88f05f028f7a6c0db0d324fbedb8178a4.zip | |
std: make address resolution weirdness local to SGX
Diffstat (limited to 'library/std/src/net/udp.rs')
| -rw-r--r-- | library/std/src/net/udp.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/net/udp.rs b/library/std/src/net/udp.rs index a97b3299774..72e292e3d15 100644 --- a/library/std/src/net/udp.rs +++ b/library/std/src/net/udp.rs @@ -120,7 +120,7 @@ impl UdpSocket { /// [`Ipv4Addr::UNSPECIFIED`] or [`Ipv6Addr::UNSPECIFIED`]. #[stable(feature = "rust1", since = "1.0.0")] pub fn bind<A: ToSocketAddrs>(addr: A) -> io::Result<UdpSocket> { - super::each_addr(addr, net_imp::UdpSocket::bind).map(UdpSocket) + net_imp::UdpSocket::bind(addr).map(UdpSocket) } /// Receives a single datagram message on the socket. On success, returns the number @@ -677,7 +677,7 @@ impl UdpSocket { /// on the platform. #[stable(feature = "net2_mutators", since = "1.9.0")] pub fn connect<A: ToSocketAddrs>(&self, addr: A) -> io::Result<()> { - super::each_addr(addr, |addr| self.0.connect(addr)) + self.0.connect(addr) } /// Sends data on the socket to the remote address to which it is connected. |
