Skip to content

Commit

Permalink
actix-service: Fix clippy warning in benches (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
popzxc authored Aug 7, 2020
1 parent 02aaa75 commit afb0a3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions actix-service/benches/and_then.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,8 @@ where
let start = std::time::Instant::now();
// benchmark body
rt.block_on(async move { join_all(srvs.iter_mut().map(|srv| srv.call(()))).await });
let elapsed = start.elapsed();
// check that at least first request succeeded
elapsed
start.elapsed()
})
});
}
Expand Down
3 changes: 1 addition & 2 deletions actix-service/benches/unsafecell_vs_refcell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,8 @@ where
let start = std::time::Instant::now();
// benchmark body
rt.block_on(async move { join_all(srvs.iter_mut().map(|srv| srv.call(()))).await });
let elapsed = start.elapsed();
// check that at least first request succeeded
elapsed
start.elapsed()
})
});
}
Expand Down

0 comments on commit afb0a3c

Please sign in to comment.