Skip to content

Commit

Permalink
more idiomatic Vec/arr handling
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-ha458 committed Sep 24, 2023
1 parent b3a6074 commit aed9e81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benches/large_datasets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use criterion::BenchmarkId;
use criterion::{black_box, criterion_group, criterion_main, Criterion};
use std::path::PathBuf;

fn bench_foo(paths: &Vec<String>) {
fn bench_foo(paths: &[String]) {
for path in paths {
let _ = from_path(&PathBuf::from(path), None);
}
Expand Down

0 comments on commit aed9e81

Please sign in to comment.