From c447ffd7591cf93a10237cfc0821593d62d77408 Mon Sep 17 00:00:00 2001 From: Tom Forbes Date: Fri, 11 Dec 2020 17:25:28 +0000 Subject: [PATCH] Fix loading --- benches/execution.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();