summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Cameron <cameron.evan@gmail.com>2020-12-11 14:45:57 -0500
committerGitHub <noreply@github.com>2020-12-11 14:45:57 -0500
commit68717c7efaced76651915696495dcb04c890be25 (patch)
tree1b7333194ac78d7ae87c5ca9f423ef830cb486b8
parent69e62ef89e481e0fb29ce3ef4ddce1eea4114000 (diff)
net: remove empty udp module (#3260)
-rw-r--r--tokio/src/lib.rs2
-rw-r--r--tokio/src/net/mod.rs4
-rw-r--r--tokio/src/net/udp.rs (renamed from tokio/src/net/udp/socket.rs)0
-rw-r--r--tokio/src/net/udp/mod.rs3
4 files changed, 3 insertions, 6 deletions
diff --git a/tokio/src/lib.rs b/tokio/src/lib.rs
index a48af757..3ec654de 100644
--- a/tokio/src/lib.rs
+++ b/tokio/src/lib.rs
@@ -239,7 +239,7 @@
//! [`std::io`]: std::io
//! [`tokio::net`]: crate::net
//! [TCP]: crate::net::tcp
-//! [UDP]: crate::net::udp
+//! [UDP]: crate::net::UdpSocket
//! [UDS]: crate::net::unix
//! [`tokio::fs`]: crate::fs
//! [`std::fs`]: std::fs
diff --git a/tokio/src/net/mod.rs b/tokio/src/net/mod.rs
index b7365e6d..2f17f9ea 100644
--- a/tokio/src/net/mod.rs
+++ b/tokio/src/net/mod.rs
@@ -36,8 +36,8 @@ cfg_net! {
pub use tcp::socket::TcpSocket;
pub use tcp::stream::TcpStream;
- pub mod udp;
- pub use udp::socket::UdpSocket;
+ mod udp;
+ pub use udp::UdpSocket;
}
cfg_net_unix! {
diff --git a/tokio/src/net/udp/socket.rs b/tokio/src/net/udp.rs
index 3775714c..3775714c 100644
--- a/tokio/src/net/udp/socket.rs
+++ b/tokio/src/net/udp.rs
diff --git a/tokio/src/net/udp/mod.rs b/tokio/src/net/udp/mod.rs
deleted file mode 100644
index c9bb0f83..00000000
--- a/tokio/src/net/udp/mod.rs
+++ /dev/null
@@ -1,3 +0,0 @@
-//! UDP utility types.
-
-pub(crate) mod socket;