Skip to content

Commit 8699a4b

Browse files
committed
chore: sort module declarations
1 parent 77b00be commit 8699a4b

5 files changed

Lines changed: 14 additions & 15 deletions

File tree

src/client/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
mod emulation;
22
mod http;
3+
mod request;
34
mod response;
45
mod upgrade;
56

67
pub(crate) mod layer;
7-
pub(crate) mod request;
88

99
pub mod body;
1010
#[cfg(feature = "multipart")]

src/core/client/connect/proxy/socks.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ pub enum SocksError<C> {
2424
Socks(tokio_socks::Error),
2525
Io(std::io::Error),
2626
Utf8(std::str::Utf8Error),
27-
2827
DnsFailure,
2928
MissingHost,
3029
}
@@ -40,7 +39,6 @@ impl<C> std::fmt::Display for SocksError<C> {
4039
Self::Utf8(e) => f.write_fmt(format_args!(
4140
"invalid UTF-8 during SOCKS authentication: {e}"
4241
)),
43-
4442
Self::DnsFailure => f.write_str("could not resolve to acceptable address type"),
4543
Self::MissingHost => f.write_str("missing destination host"),
4644
}

src/core/client/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
55
mod pool;
66

7+
pub(super) mod dispatch;
8+
79
pub mod conn;
810
pub mod connect;
9-
pub(super) mod dispatch;
1011
pub mod future;
1112
pub mod options;
1213
pub mod proxy;

src/core/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
//! http client protocol implementation and low level utilities.
22
3-
pub use self::error::{Error, Result};
4-
5-
pub mod body;
6-
pub mod client;
73
mod common;
84
mod error;
9-
pub mod ext;
5+
mod proto;
106

7+
pub mod body;
8+
pub mod client;
119
pub mod collections;
12-
mod proto;
10+
pub mod ext;
1311
pub mod rt;
1412
pub mod upgrade;
13+
14+
pub use self::error::{Error, Result};

src/dns/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
//! DNS resolution
22
3-
#[cfg(feature = "hickory-dns")]
4-
pub use hickory::{HickoryDnsResolver, LookupIpStrategy};
5-
pub use resolve::{Addrs, Name, Resolve, Resolving};
6-
pub(crate) use resolve::{DnsResolverWithOverrides, DynResolver};
7-
83
pub(crate) mod gai;
94
#[cfg(feature = "hickory-dns")]
105
pub(crate) mod hickory;
116
pub(crate) mod resolve;
7+
8+
#[cfg(feature = "hickory-dns")]
9+
pub use hickory::{HickoryDnsResolver, LookupIpStrategy};
10+
pub use resolve::{Addrs, Name, Resolve, Resolving};
11+
pub(crate) use resolve::{DnsResolverWithOverrides, DynResolver};

0 commit comments

Comments
 (0)