Fix clippy and rustfmt

This commit is contained in:
Francesco 2024-02-14 12:12:18 +01:00
parent 6877cd86f9
commit 8a7f8916c0
3 changed files with 3 additions and 4 deletions

View File

@ -182,7 +182,7 @@ impl IndexMapper {
// This is very unlikely to happen in practice.
// TODO: it would be better to lazily create the index. But we need an Index::open function for milli.
let index = self.index_map.write().unwrap().create(
Some(name.to_string()),
Some(name.to_string()),
&uuid,
&index_path,
date,
@ -372,7 +372,7 @@ impl IndexMapper {
let index_path = self.base_path.join(uuid.to_string());
break index_map.create(
Some(name.to_string()),
Some(name.to_string()),
&uuid,
&index_path,
None,

View File

@ -183,7 +183,6 @@ impl Index {
options.max_dbs(25);
let name = name;
let env = options.open(path)?;
let mut wtxn = env.write_txn()?;
let main = env.database_options().name(MAIN).create(&mut wtxn)?;

View File

@ -25,7 +25,7 @@ impl<'t, 'i> ClearDocuments<'t, 'i> {
self.index.set_updated_at(self.wtxn, &OffsetDateTime::now_utc())?;
let Index {
name: _name,
name: _name,
env: _env,
main: _main,
external_documents_ids,