Skip to content

Commit d305503

Browse files
authored
chore(lib): fix lint error (#3386)
1 parent 34d3800 commit d305503

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/client/connect/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ pub(super) mod sealed {
448448
fn connect(self, internal_only: Internal, dst: Uri) -> <Self::_Svc as ConnectSvc>::Future;
449449
}
450450

451+
#[allow(unreachable_pub)]
451452
pub trait ConnectSvc {
452453
type Connection: AsyncRead + AsyncWrite + Connection + Unpin + Send + 'static;
453454
type Error: Into<Box<dyn StdError + Send + Sync>>;

tests/support/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ use hyper::{Body, Client, Request, Response, Server, Version};
1313
pub use futures_util::{
1414
future, FutureExt as _, StreamExt as _, TryFutureExt as _, TryStreamExt as _,
1515
};
16-
pub use hyper::{ext::Protocol, http::Extensions, HeaderMap, StatusCode};
16+
pub use hyper::{ext::Protocol, HeaderMap};
17+
#[allow(unused_imports)]
18+
pub use hyper::{http::Extensions, StatusCode};
1719
pub use std::net::SocketAddr;
1820

1921
#[allow(unused_macros)]

0 commit comments

Comments
 (0)