Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(support): fix up unused lint
Browse files Browse the repository at this point in the history
seanmonstar committed Oct 25, 2023

Partially verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
1 parent 04f0981 commit a2b096d
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
@@ -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)

0 comments on commit a2b096d

Please sign in to comment.