mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-04 18:45:46 +01:00
Fix clippy and rustfmt
This commit is contained in:
parent
6877cd86f9
commit
8a7f8916c0
@ -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,
|
||||
|
@ -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)?;
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user