Skip to content

Commit adc8b58

Browse files
committed
chore(lib): sort module declarations
1 parent 5bc5cca commit adc8b58

1 file changed

Lines changed: 27 additions & 34 deletions

File tree

src/lib.rs

Lines changed: 27 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -276,18 +276,41 @@
276276
277277
#[macro_use]
278278
mod trace;
279-
280-
pub use http::{Method, StatusCode, Version, header};
281-
pub use url::Url;
282-
279+
mod client;
280+
mod connect;
281+
mod core;
283282
mod error;
284283
mod into_url;
284+
mod proxy;
285285
mod response;
286286
mod sync;
287+
mod util;
288+
289+
#[cfg(feature = "cookies")]
290+
pub mod cookie;
291+
pub mod dns;
292+
pub mod redirect;
293+
pub mod tls;
287294

295+
pub use http::{Method, StatusCode, Version, header};
296+
pub use url::Url;
297+
298+
#[cfg(feature = "multipart")]
299+
pub use self::client::multipart;
300+
#[cfg(feature = "websocket")]
301+
pub use self::client::ws;
288302
pub use self::{
303+
client::{
304+
Body, Client, ClientBuilder, Emulation, EmulationFactory, Request, RequestBuilder,
305+
Response, Upgraded,
306+
},
307+
core::{
308+
client::options::{http1, http2},
309+
ext::OriginalHeaders,
310+
},
289311
error::{Error, Result},
290312
into_url::IntoUrl,
313+
proxy::{NoProxy, Proxy},
291314
response::ResponseBuilderExt,
292315
};
293316

@@ -314,33 +337,3 @@ fn _assert_impls() {
314337
assert_send::<Error>();
315338
assert_sync::<Error>();
316339
}
317-
318-
#[cfg(feature = "multipart")]
319-
pub use self::client::multipart;
320-
#[cfg(feature = "websocket")]
321-
pub use self::client::ws;
322-
pub use self::{
323-
client::{
324-
Body, Client, ClientBuilder, Emulation, EmulationFactory, Request, RequestBuilder,
325-
Response, Upgraded,
326-
},
327-
core::{
328-
client::options::{http1, http2},
329-
ext::OriginalHeaders,
330-
},
331-
proxy::{NoProxy, Proxy},
332-
};
333-
334-
mod client;
335-
mod connect;
336-
#[cfg(feature = "cookies")]
337-
pub mod cookie;
338-
339-
mod core;
340-
pub mod dns;
341-
mod proxy;
342-
343-
pub mod redirect;
344-
345-
pub mod tls;
346-
mod util;

0 commit comments

Comments
 (0)