Fix loading

This commit is contained in:
Tom Forbes committed 2020-12-11 17:25:28 +00:00
1 parent e7458059fd
commit c447ffd759
1 file changed
+1 -1
+1 -1
View File
@@ -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();