Make clippy happy

This commit is contained in:
Clémentine Urquizar 2021-07-29 18:14:36 +02:00
parent 976075578f
commit bf76d4a43c
No known key found for this signature in database
GPG key ID: D8E7CC7422E77E1A
8 changed files with 22 additions and 22 deletions

View file

@ -98,7 +98,7 @@ fn load_index(
let mut txn = index.write_txn()?;
let handler = UpdateHandler::new(&indexer_options)?;
let handler = UpdateHandler::new(indexer_options)?;
index.update_settings_txn(&mut txn, &settings.check(), handler.update_builder(0))?;

View file

@ -40,9 +40,9 @@ impl IndexMeta {
}
fn new_txn(index: &Index, txn: &heed::RoTxn) -> Result<Self> {
let created_at = index.created_at(&txn)?;
let updated_at = index.updated_at(&txn)?;
let primary_key = index.primary_key(&txn)?.map(String::from);
let created_at = index.created_at(txn)?;
let updated_at = index.updated_at(txn)?;
let primary_key = index.primary_key(txn)?.map(String::from);
Ok(Self {
created_at,
updated_at,

View file

@ -59,8 +59,8 @@ impl UpdateStore {
let update_files_path = path.as_ref().join(super::UPDATE_DIR);
create_dir_all(&update_files_path)?;
self.dump_pending(&txn, uuids, &mut dump_data_file, &path)?;
self.dump_completed(&txn, uuids, &mut dump_data_file)?;
self.dump_pending(txn, uuids, &mut dump_data_file, &path)?;
self.dump_completed(txn, uuids, &mut dump_data_file)?;
Ok(())
}

View file

@ -268,13 +268,13 @@ impl UpdateStore {
self.pending_queue.remap_key_type::<PendingKeyCodec>().put(
wtxn,
&(global_id, index_uuid, enqueued.id()),
&enqueued,
enqueued,
)?;
}
_ => {
let _update_id = self.next_update_id_raw(wtxn, index_uuid)?;
self.updates
.put(wtxn, &(index_uuid, update.id()), &update)?;
.put(wtxn, &(index_uuid, update.id()), update)?;
}
}
Ok(())