mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-05-25 09:03:59 +02: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.
|
// 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.
|
// 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(
|
let index = self.index_map.write().unwrap().create(
|
||||||
Some(name.to_string()),
|
Some(name.to_string()),
|
||||||
&uuid,
|
&uuid,
|
||||||
&index_path,
|
&index_path,
|
||||||
date,
|
date,
|
||||||
@ -372,7 +372,7 @@ impl IndexMapper {
|
|||||||
let index_path = self.base_path.join(uuid.to_string());
|
let index_path = self.base_path.join(uuid.to_string());
|
||||||
|
|
||||||
break index_map.create(
|
break index_map.create(
|
||||||
Some(name.to_string()),
|
Some(name.to_string()),
|
||||||
&uuid,
|
&uuid,
|
||||||
&index_path,
|
&index_path,
|
||||||
None,
|
None,
|
||||||
|
@ -183,7 +183,6 @@ impl Index {
|
|||||||
|
|
||||||
options.max_dbs(25);
|
options.max_dbs(25);
|
||||||
|
|
||||||
let name = name;
|
|
||||||
let env = options.open(path)?;
|
let env = options.open(path)?;
|
||||||
let mut wtxn = env.write_txn()?;
|
let mut wtxn = env.write_txn()?;
|
||||||
let main = env.database_options().name(MAIN).create(&mut wtxn)?;
|
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())?;
|
self.index.set_updated_at(self.wtxn, &OffsetDateTime::now_utc())?;
|
||||||
let Index {
|
let Index {
|
||||||
name: _name,
|
name: _name,
|
||||||
env: _env,
|
env: _env,
|
||||||
main: _main,
|
main: _main,
|
||||||
external_documents_ids,
|
external_documents_ids,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user