makes clippy happy

This commit is contained in:
Irevoire 2021-06-10 14:53:34 +02:00 committed by mpostma
parent 2d19b78dd8
commit 20e1caef47

View File

@ -9,8 +9,7 @@ use heed::{EnvOpenOptions, RoTxn};
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use uuid::Uuid; use uuid::Uuid;
use super::UpdateStore; use super::{State, UpdateStore};
use super::{codec::UpdateKeyCodec, State};
use crate::index_controller::{ use crate::index_controller::{
index_actor::IndexActorHandle, update_actor::store::update_uuid_to_file_path, Enqueued, index_actor::IndexActorHandle, update_actor::store::update_uuid_to_file_path, Enqueued,
UpdateStatus, UpdateStatus,
@ -105,10 +104,7 @@ impl UpdateStore {
uuids: &HashSet<Uuid>, uuids: &HashSet<Uuid>,
mut file: &mut File, mut file: &mut File,
) -> anyhow::Result<()> { ) -> anyhow::Result<()> {
let updates = self let updates = self.updates.iter(txn)?.lazily_decode_data();
.updates
.iter(txn)?
.lazily_decode_data();
for update in updates { for update in updates {
let ((uuid, _), data) = update?; let ((uuid, _), data) = update?;