Make clippy happy

This commit is contained in:
Kerollmops 2022-10-03 15:29:37 +02:00 committed by Clément Renault
parent 31de33d5ee
commit 5d21c790ef
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
7 changed files with 31 additions and 30 deletions

View file

@ -350,7 +350,7 @@ impl IndexScheduler {
// matter.
let index_name = task.indexes().unwrap()[0];
let _index = self.get_index(rtxn, &index_name)? & enqueued;
let _index = self.get_index(rtxn, index_name)? & enqueued;
let enqueued = enqueued
.into_iter()
@ -382,7 +382,7 @@ impl IndexScheduler {
| IndexOperation::DocumentClear { ref index_uid, .. } => {
// only get the index, don't create it
let rtxn = self.env.read_txn()?;
self.index_mapper.index(&rtxn, &index_uid)?
self.index_mapper.index(&rtxn, index_uid)?
}
IndexOperation::DocumentImport { ref index_uid, .. }
| IndexOperation::Settings { ref index_uid, .. }
@ -390,7 +390,7 @@ impl IndexScheduler {
| IndexOperation::SettingsAndDocumentImport { ref index_uid, .. } => {
// create the index if it doesn't already exist
let mut wtxn = self.env.write_txn()?;
let index = self.index_mapper.index(&mut wtxn, index_uid)?;
let index = self.index_mapper.create_index(&mut wtxn, index_uid)?;
wtxn.commit()?;
index
}