From 569a42d5c91da551ce0affafd43833195ce7bf7d Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Thu, 26 Oct 2023 08:26:41 -0400 Subject: [PATCH] test(support): fix up unused lint (#3374) --- benches/support/mod.rs | 1 + tests/support/mod.rs | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/benches/support/mod.rs b/benches/support/mod.rs index 85cb67fd33..7c0c2586fd 100644 --- a/benches/support/mod.rs +++ b/benches/support/mod.rs @@ -1,2 +1,3 @@ mod tokiort; +#[allow(unused)] pub use tokiort::{TokioExecutor, TokioIo, TokioTimer}; diff --git a/tests/support/mod.rs b/tests/support/mod.rs index c46eff89ea..c796459412 100644 --- a/tests/support/mod.rs +++ b/tests/support/mod.rs @@ -17,10 +17,11 @@ use hyper::{body::Incoming as IncomingBody, Request, Response, Version}; pub use futures_util::{ future, FutureExt as _, StreamExt as _, TryFutureExt as _, TryStreamExt as _, }; -pub use hyper::{HeaderMap, StatusCode}; +pub use hyper::HeaderMap; pub use std::net::SocketAddr; mod tokiort; +#[allow(unused)] pub use tokiort::{TokioExecutor, TokioIo, TokioTimer}; #[allow(unused_macros)] @@ -199,7 +200,7 @@ macro_rules! __internal_req_res_prop { $prop_val }; (status: $prop_val:expr) => { - StatusCode::from_u16($prop_val).expect("status code") + hyper::StatusCode::from_u16($prop_val).expect("status code") }; ($prop_name:ident: $prop_val:expr) => { From::from($prop_val)