Move net::parser into net::addr module.

This commit is contained in:
Markus Reiter 2022-08-20 00:24:49 +02:00
parent 65003fd4e3
commit a1e4a339ed
No known key found for this signature in database
GPG Key ID: 245293B51702655B
4 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,5 @@
mod display_buffer; mod display_buffer;
pub mod ip; pub mod ip;
pub mod parser;
pub mod socket; pub mod socket;

View File

@ -26,9 +26,9 @@ use crate::io::{self, ErrorKind};
#[stable(feature = "rust1", since = "1.0.0")] #[stable(feature = "rust1", since = "1.0.0")]
pub use self::addr::ip::{IpAddr, Ipv4Addr, Ipv6Addr, Ipv6MulticastScope}; pub use self::addr::ip::{IpAddr, Ipv4Addr, Ipv6Addr, Ipv6MulticastScope};
#[stable(feature = "rust1", since = "1.0.0")] #[stable(feature = "rust1", since = "1.0.0")]
pub use self::addr::socket::{SocketAddr, SocketAddrV4, SocketAddrV6, ToSocketAddrs}; pub use self::addr::parser::AddrParseError;
#[stable(feature = "rust1", since = "1.0.0")] #[stable(feature = "rust1", since = "1.0.0")]
pub use self::parser::AddrParseError; pub use self::addr::socket::{SocketAddr, SocketAddrV4, SocketAddrV6, ToSocketAddrs};
#[unstable(feature = "tcplistener_into_incoming", issue = "88339")] #[unstable(feature = "tcplistener_into_incoming", issue = "88339")]
pub use self::tcp::IntoIncoming; pub use self::tcp::IntoIncoming;
#[stable(feature = "rust1", since = "1.0.0")] #[stable(feature = "rust1", since = "1.0.0")]
@ -37,7 +37,6 @@ pub use self::tcp::{Incoming, TcpListener, TcpStream};
pub use self::udp::UdpSocket; pub use self::udp::UdpSocket;
mod addr; mod addr;
mod parser;
mod tcp; mod tcp;
#[cfg(test)] #[cfg(test)]
pub(crate) mod test; pub(crate) mod test;