Fix the formatting

This commit is contained in:
Clément Renault 2023-01-17 18:02:55 +01:00
parent 1b78231e18
commit 1d507c84b2
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
2 changed files with 4 additions and 9 deletions

View file

@ -141,8 +141,8 @@ pub fn run_benches(c: &mut criterion::Criterion, confs: &[Conf]) {
}
pub fn documents_from(filename: &str, filetype: &str) -> DocumentsBatchReader<impl BufRead + Seek> {
let reader =
File::open(filename).unwrap_or_else(|_| panic!("could not find the dataset in: {}", filename));
let reader = File::open(filename)
.unwrap_or_else(|_| panic!("could not find the dataset in: {}", filename));
let reader = BufReader::new(reader);
let documents = match filetype {
"csv" => documents_from_csv(reader).unwrap(),