Skip to content

Commit 458ad95

Browse files
committed
fmt
1 parent 94e5ada commit 458ad95

5 files changed

Lines changed: 8 additions & 82 deletions

File tree

src/client/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ mod emulation;
22
mod http;
33
mod request;
44
mod response;
5-
mod upgrade;
65

76
pub(crate) mod layer;
87

@@ -18,5 +17,9 @@ pub use self::{
1817
http::{Client, ClientBuilder},
1918
request::{Request, RequestBuilder},
2019
response::Response,
20+
};
21+
pub use crate::core::client::{
22+
connect::dns,
23+
options::{http1, http2},
2124
upgrade::Upgraded,
2225
};

src/client/upgrade.rs

Lines changed: 0 additions & 72 deletions
This file was deleted.

src/core/client/options/http2.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
33
use std::time::Duration;
44

5-
use http2::frame::ExperimentalSettings;
65
pub use http2::frame::{
7-
Priorities, PrioritiesBuilder, Priority, PseudoId, PseudoOrder, Setting, SettingId,
8-
SettingsOrder, SettingsOrderBuilder, StreamDependency, StreamId,
6+
ExperimentalSettings, Priorities, PrioritiesBuilder, Priority, PseudoId, PseudoOrder, Setting,
7+
SettingId, SettingsOrder, SettingsOrderBuilder, StreamDependency, StreamId,
98
};
109

1110
use super::super::proto;

src/core/client/upgrade.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ use crate::core::{Error, Result};
4545
///
4646
/// This type holds a trait object internally of the original IO that
4747
/// was used to speak HTTP before the upgrade. It can be used directly
48-
/// as a [`Read`] or [`Write`] for convenience.
48+
/// as a [`AsyncRead`] or [`AsyncWrite`] for convenience.
4949
///
5050
/// Alternatively, if the exact type is known, this can be deconstructed
5151
/// into its parts.

src/lib.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -291,11 +291,7 @@ pub use self::client::ws;
291291
pub use self::{
292292
client::{
293293
Body, Client, ClientBuilder, Emulation, EmulationBuilder, EmulationFactory, Request,
294-
RequestBuilder, Response, Upgraded,
295-
},
296-
core::client::{
297-
connect::dns,
298-
options::{http1, http2},
294+
RequestBuilder, Response, Upgraded, dns, http1, http2,
299295
},
300296
error::{Error, Result},
301297
into_url::IntoUrl,

0 commit comments

Comments
 (0)