Skip to content

Commit 774b7f2

Browse files
authored
Merge pull request #743 from hatoo/fix-clippy
Fix clippy warning
2 parents e18c8a5 + 18a3391 commit 774b7f2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/tests.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ async fn get_req(path: &str, args: &[&str]) -> Request<hyper::body::Incoming> {
4343

4444
let (listener, port) = bind_port().await;
4545

46-
let http2 = args.iter().any(|&arg| arg == "--http2")
47-
|| args.windows(2).any(|w| w == ["--http-version", "2"]);
46+
let http2 = args.contains(&"--http2") || args.windows(2).any(|w| w == ["--http-version", "2"]);
4847

4948
tokio::spawn(async move {
5049
if http2 {

0 commit comments

Comments
 (0)