From cb99ac6f7eddef97bb4386987b3151ecd40219f4 Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Wed, 4 Dec 2024 17:00:22 +0100 Subject: [PATCH] Consume vec instead of draining --- crates/milli/src/update/new/extract/cache.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/milli/src/update/new/extract/cache.rs b/crates/milli/src/update/new/extract/cache.rs index ae5ade17e..b57ba6b9b 100644 --- a/crates/milli/src/update/new/extract/cache.rs +++ b/crates/milli/src/update/new/extract/cache.rs @@ -652,7 +652,7 @@ where break; } - for (key, bbbul) in ordered_buffer.drain(..) { + for (key, bbbul) in ordered_buffer { // Make sure we don't try to work with entries already managed by the spilled if bbbul.is_empty() { continue;