diff --git a/crates/utils/src/interval_map/tests.rs b/crates/utils/src/interval_map/tests.rs index b416ac898..bd159cfff 100644 --- a/crates/utils/src/interval_map/tests.rs +++ b/crates/utils/src/interval_map/tests.rs @@ -98,12 +98,12 @@ impl IntervalMap { } } -fn with_map_and_generator(test_fn: impl FnOnce(IntervalMap, IntervalGenerator) + Clone) { +fn with_map_and_generator(test_fn: impl Fn(IntervalMap, IntervalGenerator)) { let seeds = vec![[0; 32], [1; 32], [2; 32]]; for seed in seeds { let gen = IntervalGenerator::new(seed); let map = IntervalMap::new(); - test_fn.clone()(map, gen); + test_fn(map, gen); } }