Skip to content

Commit

Permalink
test(support): fix up unused lint (#3374)
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar authored Oct 26, 2023
1 parent 04f0981 commit 569a42d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions benches/support/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
mod tokiort;
#[allow(unused)]
pub use tokiort::{TokioExecutor, TokioIo, TokioTimer};
5 changes: 3 additions & 2 deletions tests/support/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 569a42d

Please sign in to comment.