From c7f02c626d2bbcf5895774ea5b7ba175ffc2d5cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Schj=C3=B8lberg?= Date: Tue, 6 Aug 2024 15:20:03 +0200 Subject: [PATCH] Make it compile on rust 1.66 --- src/bitmap/store/array_store/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bitmap/store/array_store/mod.rs b/src/bitmap/store/array_store/mod.rs index 710a644c..f509bb19 100644 --- a/src/bitmap/store/array_store/mod.rs +++ b/src/bitmap/store/array_store/mod.rs @@ -230,7 +230,7 @@ impl ArrayStore { match self.vec.as_slice().binary_search(&n) { Ok(index) | Err(index) => { if index == self.vec.len() { - Default::default() + [].iter() } else { (&self.vec[index..]).into_iter() }