Refactor function signatures to use slices

This commit is contained in:
Michael Schimmel
2026-03-03 18:13:20 +01:00
parent 7c38dee243
commit 8c4db9a5ba
12 changed files with 262 additions and 209 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ pub fn run_benchmarks(update: bool, filter: Option<&str>) -> Vec<BenchmarkResult
let mut total = Duration::ZERO;
for _ in 0..n {
let start = Instant::now();
let _ = (func.func)(vec![]);
let _ = (func.func)(&[]);
total += start.elapsed();
}
Ok(total)