Skip to content

Commit 8d292e1

Browse files
authored
move pool module to under legacy (#53)
1 parent c20cd20 commit 8d292e1

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

src/client/legacy/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ use hyper::rt::Timer;
1818
use hyper::{body::Body, Method, Request, Response, Uri, Version};
1919
use tracing::{debug, trace, warn};
2020

21-
use super::super::pool::{self, Ver};
2221
#[cfg(feature = "tokio")]
2322
use super::connect::HttpConnector;
2423
use super::connect::{Alpn, Connect, Connected, Connection};
24+
use super::pool::{self, Ver};
2525
use crate::common::{lazy as hyper_lazy, Exec, Lazy, SyncWrapper};
2626

2727
type BoxSendFuture = Pin<Box<dyn Future<Output = ()> + Send>>;

src/client/legacy/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@ pub use client::Client;
66
pub use client::Error;
77

88
pub mod connect;
9+
#[doc(hidden)]
10+
// Publicly available, but just for legacy purposes. A better pool will be
11+
// designed.
12+
pub mod pool;
File renamed without changes.

src/client/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,3 @@
33
/// Legacy implementations of `connect` module and `Client`
44
#[cfg(feature = "client-legacy")]
55
pub mod legacy;
6-
#[doc(hidden)]
7-
pub mod pool;

0 commit comments

Comments
 (0)