Skip to content

Commit 89c74e8

Browse files
committed
Move net::parser into net::addr module.
1 parent 63700a8 commit 89c74e8

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

library/std/src/net/addr/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
mod display_buffer;
22

33
pub mod ip;
4+
pub mod parser;
45
pub mod socket;

library/std/src/net/mod.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ use crate::io::{self, ErrorKind};
2626
#[stable(feature = "rust1", since = "1.0.0")]
2727
pub use self::addr::ip::{IpAddr, Ipv4Addr, Ipv6Addr, Ipv6MulticastScope};
2828
#[stable(feature = "rust1", since = "1.0.0")]
29-
pub use self::addr::socket::{SocketAddr, SocketAddrV4, SocketAddrV6, ToSocketAddrs};
29+
pub use self::addr::parser::AddrParseError;
3030
#[stable(feature = "rust1", since = "1.0.0")]
31-
pub use self::parser::AddrParseError;
31+
pub use self::addr::socket::{SocketAddr, SocketAddrV4, SocketAddrV6, ToSocketAddrs};
3232
#[unstable(feature = "tcplistener_into_incoming", issue = "88339")]
3333
pub use self::tcp::IntoIncoming;
3434
#[stable(feature = "rust1", since = "1.0.0")]
@@ -37,7 +37,6 @@ pub use self::tcp::{Incoming, TcpListener, TcpStream};
3737
pub use self::udp::UdpSocket;
3838

3939
mod addr;
40-
mod parser;
4140
mod tcp;
4241
#[cfg(test)]
4342
mod test;

0 commit comments

Comments
 (0)