about summary refs log tree commit diff
path: root/library/std/src/net/udp.rs
diff options
context:
space:
mode:
authorjoboet <jonasboettiger@icloud.com>2025-02-02 18:53:52 +0100
committerjoboet <jonasboettiger@icloud.com>2025-02-02 19:12:06 +0100
commit4f834264ab8d0cb95ac7972532661c84a154667e (patch)
tree8a03c78c8ca1dd14d894be5a44834492b3fd11de /library/std/src/net/udp.rs
parent6dd75f0d6802f56564f5f9c947a85ded286d3986 (diff)
downloadrust-4f834264ab8d0cb95ac7972532661c84a154667e.tar.gz
rust-4f834264ab8d0cb95ac7972532661c84a154667e.zip
std: move network code into `sys`
As per #117276, this PR moves `sys_common::net` and the `sys::pal::net` into the newly created `sys::net` module. In order to support #135141, I've moved all the current network code into a separate `connection` module, future functions like `hostname` can live in separate modules.

I'll probably do a follow-up PR and clean up some of the actual code, this is mostly just a reorganization.
Diffstat (limited to 'library/std/src/net/udp.rs')
-rw-r--r--library/std/src/net/udp.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/library/std/src/net/udp.rs b/library/std/src/net/udp.rs
index 674c5fb7d6e..3eb798ad34a 100644
--- a/library/std/src/net/udp.rs
+++ b/library/std/src/net/udp.rs
@@ -12,7 +12,8 @@ mod tests;
 use crate::fmt;
 use crate::io::{self, ErrorKind};
 use crate::net::{Ipv4Addr, Ipv6Addr, SocketAddr, ToSocketAddrs};
-use crate::sys_common::{AsInner, FromInner, IntoInner, net as net_imp};
+use crate::sys::net as net_imp;
+use crate::sys_common::{AsInner, FromInner, IntoInner};
 use crate::time::Duration;
 
 /// A UDP socket.