about summary refs log tree commit diff
path: root/src/libstd/net
diff options
context:
space:
mode:
authorJeffrey Seyfried <jeffrey.seyfried@gmail.com>2016-08-22 19:47:38 +0000
committerJeffrey Seyfried <jeffrey.seyfried@gmail.com>2016-08-24 22:12:48 +0000
commit9a2c8783d91624261317316f996d8d2d09b7b6a4 (patch)
treecb3ba15345b67689d4cbb5e62c441960611e5de1 /src/libstd/net
parente2ad3be1787cdd36d52fcd2355225156f5460dc4 (diff)
downloadrust-9a2c8783d91624261317316f996d8d2d09b7b6a4.tar.gz
rust-9a2c8783d91624261317316f996d8d2d09b7b6a4.zip
Use `#[prelude_import]` in `libstd`.
Diffstat (limited to 'src/libstd/net')
-rw-r--r--src/libstd/net/addr.rs3
-rw-r--r--src/libstd/net/ip.rs1
-rw-r--r--src/libstd/net/mod.rs2
-rw-r--r--src/libstd/net/parser.rs2
-rw-r--r--src/libstd/net/tcp.rs3
-rw-r--r--src/libstd/net/test.rs2
-rw-r--r--src/libstd/net/udp.rs2
7 files changed, 0 insertions, 15 deletions
diff --git a/src/libstd/net/addr.rs b/src/libstd/net/addr.rs
index b93ca8277e6..d0b59b42c17 100644
--- a/src/libstd/net/addr.rs
+++ b/src/libstd/net/addr.rs
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-use prelude::v1::*;
-
 use fmt;
 use hash;
 use io;
@@ -523,7 +521,6 @@ impl<'a, T: ToSocketAddrs + ?Sized> ToSocketAddrs for &'a T {
 
 #[cfg(test)]
 mod tests {
-    use prelude::v1::*;
     use net::*;
     use net::test::{tsa, sa6, sa4};
 
diff --git a/src/libstd/net/ip.rs b/src/libstd/net/ip.rs
index 4c3b993497c..c6a7a77e68a 100644
--- a/src/libstd/net/ip.rs
+++ b/src/libstd/net/ip.rs
@@ -653,7 +653,6 @@ impl From<[u8; 16]> for Ipv6Addr {
 // Tests for this module
 #[cfg(test)]
 mod tests {
-    use prelude::v1::*;
     use net::*;
     use net::Ipv6MulticastScope::*;
     use net::test::{tsa, sa6, sa4};
diff --git a/src/libstd/net/mod.rs b/src/libstd/net/mod.rs
index 11a16b27113..2a78afa85f7 100644
--- a/src/libstd/net/mod.rs
+++ b/src/libstd/net/mod.rs
@@ -12,8 +12,6 @@
 
 #![stable(feature = "rust1", since = "1.0.0")]
 
-use prelude::v1::*;
-
 use io::{self, Error, ErrorKind};
 use sys_common::net as net_imp;
 
diff --git a/src/libstd/net/parser.rs b/src/libstd/net/parser.rs
index 5851ce7135d..854d87c4cbe 100644
--- a/src/libstd/net/parser.rs
+++ b/src/libstd/net/parser.rs
@@ -13,8 +13,6 @@
 //! This module is "publicly exported" through the `FromStr` implementations
 //! below.
 
-use prelude::v1::*;
-
 use error::Error;
 use fmt;
 use net::{IpAddr, Ipv4Addr, Ipv6Addr, SocketAddr, SocketAddrV4, SocketAddrV6};
diff --git a/src/libstd/net/tcp.rs b/src/libstd/net/tcp.rs
index 76617f15970..dcd3652af87 100644
--- a/src/libstd/net/tcp.rs
+++ b/src/libstd/net/tcp.rs
@@ -8,7 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-use prelude::v1::*;
 use io::prelude::*;
 
 use fmt;
@@ -438,8 +437,6 @@ impl fmt::Debug for TcpListener {
 
 #[cfg(test)]
 mod tests {
-    use prelude::v1::*;
-
     use io::ErrorKind;
     use io::prelude::*;
     use net::*;
diff --git a/src/libstd/net/test.rs b/src/libstd/net/test.rs
index 9665fd72287..98ac61f6461 100644
--- a/src/libstd/net/test.rs
+++ b/src/libstd/net/test.rs
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-use prelude::v1::*;
-
 use env;
 use net::{SocketAddr, SocketAddrV4, SocketAddrV6, Ipv4Addr, Ipv6Addr, ToSocketAddrs};
 use sync::atomic::{AtomicUsize, Ordering};
diff --git a/src/libstd/net/udp.rs b/src/libstd/net/udp.rs
index 9d0279deb1b..781f026c12c 100644
--- a/src/libstd/net/udp.rs
+++ b/src/libstd/net/udp.rs
@@ -355,8 +355,6 @@ impl fmt::Debug for UdpSocket {
 
 #[cfg(test)]
 mod tests {
-    use prelude::v1::*;
-
     use io::ErrorKind;
     use net::*;
     use net::test::{next_test_ip4, next_test_ip6};