From 7d95950ce6c3895e9fa2750f166f19dfc35f4d28 Mon Sep 17 00:00:00 2001 From: Tamo Date: Tue, 21 Jan 2025 17:07:44 +0100 Subject: [PATCH] fix warning --- crates/index-scheduler/src/scheduler/process_dump_creation.rs | 2 +- crates/index-scheduler/src/scheduler/test_failure.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/index-scheduler/src/scheduler/process_dump_creation.rs b/crates/index-scheduler/src/scheduler/process_dump_creation.rs index 20ff3b5b0..09c1020ac 100644 --- a/crates/index-scheduler/src/scheduler/process_dump_creation.rs +++ b/crates/index-scheduler/src/scheduler/process_dump_creation.rs @@ -106,7 +106,7 @@ impl IndexScheduler { progress.update_progress(DumpCreationProgress::DumpTheIndexes); let nb_indexes = self.index_mapper.index_mapping.len(&rtxn)? as u32; let mut count = 0; - self.index_mapper.try_for_each_index(&rtxn, |uid, index| -> Result<()> { + let () = self.index_mapper.try_for_each_index(&rtxn, |uid, index| -> Result<()> { progress.update_progress(VariableNameStep::::new( uid.to_string(), count, diff --git a/crates/index-scheduler/src/scheduler/test_failure.rs b/crates/index-scheduler/src/scheduler/test_failure.rs index 8e0c06331..8307e6aa7 100644 --- a/crates/index-scheduler/src/scheduler/test_failure.rs +++ b/crates/index-scheduler/src/scheduler/test_failure.rs @@ -11,7 +11,7 @@ use roaring::RoaringBitmap; use crate::insta_snapshot::snapshot_index_scheduler; use crate::test_utils::Breakpoint::*; -use crate::test_utils::{index_creation_task, read_json, Breakpoint, FailureLocation}; +use crate::test_utils::{index_creation_task, read_json, FailureLocation}; use crate::IndexScheduler; #[test]