From 973e41e7395a95d10a400c09850e918850dce7ce Mon Sep 17 00:00:00 2001 From: Pascal Seitz Date: Wed, 6 Nov 2024 11:05:36 +0800 Subject: [PATCH] fix lifetime --- src/bench_group.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bench_group.rs b/src/bench_group.rs index 67dbd3d..34c6eab 100644 --- a/src/bench_group.rs +++ b/src/bench_group.rs @@ -72,7 +72,7 @@ impl<'a, 'runner> BenchGroup<'a, 'runner> { /// The return value of the function will be reported as the `OutputValue`. pub fn register, O: OutputValue + 'static>(&mut self, bench_name: S, fun: F) where - F: Fn(&'a ()) -> O + 'static, + F: Fn(&'a ()) -> O + 'a, { let bench_name = bench_name.into(); let bench = NamedBench::new(