Skip to content

Commit

Permalink
fix lifetime
Browse files Browse the repository at this point in the history
  • Loading branch information
PSeitz committed Nov 6, 2024
1 parent fbe23b2 commit 973e41e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bench_group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<F, S: Into<String>, 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(
Expand Down

0 comments on commit 973e41e

Please sign in to comment.