diff --git a/benches/execution.rs b/benches/execution.rs index 8a418f548..cb0350c71 100644 --- a/benches/execution.rs +++ b/benches/execution.rs @@ -105,7 +105,7 @@ pub fn criterion_benchmark(c: &mut Criterion) { .into_iter() .map(|p| { let name = p.file_name().unwrap().to_os_string(); - let contents = fs::read_to_string(&name).unwrap(); + let contents = fs::read_to_string(p).unwrap(); (name.into_string().unwrap(), contents) }) .collect();