Skip to content

Commit

Permalink
Add explicit lifetime annotation to BenchGroup in req_rep benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
rgbkrk committed Dec 13, 2024
1 parent 87d1138 commit 40ed527
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benches/req_rep.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ fn criterion_benchmark(c: &mut Criterion) {
bench(&mut group, "TCP", "tcp://localhost:0", &mut rt);
bench(&mut group, "IPC", "ipc://req_rep.sock", &mut rt);

fn bench(group: &mut BenchGroup, bench_name: &str, endpoint: &str, rt: &mut Runtime) {
fn bench(group: &mut BenchGroup<'_>, bench_name: &str, endpoint: &str, rt: &mut Runtime) {
#[allow(unused, clippy::redundant_locals)]
let rt = rt;

Expand Down

0 comments on commit 40ed527

Please sign in to comment.