From a2b46cf7dd554eeba1e8993d0152e32730b42e3f Mon Sep 17 00:00:00 2001 From: tottoto Date: Sat, 4 Nov 2023 13:44:47 +0900 Subject: [PATCH] chore(lib): fix lint error --- src/client/connect/mod.rs | 1 + tests/support/mod.rs | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/client/connect/mod.rs b/src/client/connect/mod.rs index 4815524811..6b4a04acf7 100644 --- a/src/client/connect/mod.rs +++ b/src/client/connect/mod.rs @@ -448,6 +448,7 @@ pub(super) mod sealed { fn connect(self, internal_only: Internal, dst: Uri) -> ::Future; } + #[allow(unreachable_pub)] pub trait ConnectSvc { type Connection: AsyncRead + AsyncWrite + Connection + Unpin + Send + 'static; type Error: Into>; diff --git a/tests/support/mod.rs b/tests/support/mod.rs index 213f3e1562..3b116aef34 100644 --- a/tests/support/mod.rs +++ b/tests/support/mod.rs @@ -13,7 +13,9 @@ use hyper::{Body, Client, Request, Response, Server, Version}; pub use futures_util::{ future, FutureExt as _, StreamExt as _, TryFutureExt as _, TryStreamExt as _, }; -pub use hyper::{ext::Protocol, http::Extensions, HeaderMap, StatusCode}; +pub use hyper::{ext::Protocol, HeaderMap}; +#[allow(unused_imports)] +pub use hyper::{http::Extensions, StatusCode}; pub use std::net::SocketAddr; #[allow(unused_macros)]