From 5d82155060e725a041d81ab02e9335de7ef953c0 Mon Sep 17 00:00:00 2001 From: Francesco Date: Wed, 14 Feb 2024 13:29:57 +0100 Subject: [PATCH] Fix clippy and fmt issues --- benchmarks/benches/indexing.rs | 2 +- benchmarks/benches/utils.rs | 2 +- index-scheduler/src/index_mapper/index_map.rs | 8 +------- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/benchmarks/benches/indexing.rs b/benchmarks/benches/indexing.rs index 0c19b89cf..bebf11ba0 100644 --- a/benchmarks/benches/indexing.rs +++ b/benchmarks/benches/indexing.rs @@ -32,7 +32,7 @@ fn setup_index() -> Index { let mut options = EnvOpenOptions::new(); options.map_size(100 * 1024 * 1024 * 1024); // 100 GB options.max_readers(10); - Index::new(options, path).unwrap() + Index::new(None, options, path).unwrap() } fn setup_settings<'t>( diff --git a/benchmarks/benches/utils.rs b/benchmarks/benches/utils.rs index b848560ad..ab52a9a6a 100644 --- a/benchmarks/benches/utils.rs +++ b/benchmarks/benches/utils.rs @@ -66,7 +66,7 @@ pub fn base_setup(conf: &Conf) -> Index { let mut options = EnvOpenOptions::new(); options.map_size(100 * 1024 * 1024 * 1024); // 100 GB options.max_readers(10); - let index = Index::new(options, conf.database_name).unwrap(); + let index = Index::new(None, options, conf.database_name).unwrap(); let config = IndexerConfig::default(); let mut wtxn = index.write_txn().unwrap(); diff --git a/index-scheduler/src/index_mapper/index_map.rs b/index-scheduler/src/index_mapper/index_map.rs index cf8288461..c3873e465 100644 --- a/index-scheduler/src/index_mapper/index_map.rs +++ b/index-scheduler/src/index_mapper/index_map.rs @@ -311,13 +311,7 @@ fn create_or_open_index( } if let Some((created, updated)) = date { - Ok(Index::new_with_creation_dates( - name, - options, - path, - created, - updated, - )?) + Ok(Index::new_with_creation_dates(name, options, path, created, updated)?) } else { Ok(Index::new(name, options, path)?) }