diff --git a/src/bitmap/container.rs b/src/bitmap/container.rs index 9116863a..552fff56 100644 --- a/src/bitmap/container.rs +++ b/src/bitmap/container.rs @@ -3,8 +3,6 @@ use core::ops::{ BitAnd, BitAndAssign, BitOr, BitOrAssign, BitXor, BitXorAssign, RangeInclusive, Sub, SubAssign, }; -use alloc::vec::Vec; - use super::store::{self, Store}; use super::util; diff --git a/src/bitmap/fmt.rs b/src/bitmap/fmt.rs index a3a6a95a..096506d0 100644 --- a/src/bitmap/fmt.rs +++ b/src/bitmap/fmt.rs @@ -1,7 +1,5 @@ use core::fmt; -use alloc::vec::Vec; - use crate::RoaringBitmap; impl fmt::Debug for RoaringBitmap { diff --git a/src/bitmap/inherent.rs b/src/bitmap/inherent.rs index abb5acbb..caa26506 100644 --- a/src/bitmap/inherent.rs +++ b/src/bitmap/inherent.rs @@ -1,8 +1,6 @@ use core::cmp::Ordering; use core::ops::RangeBounds; -use alloc::vec::Vec; - use crate::RoaringBitmap; use super::container::Container; diff --git a/src/bitmap/iter.rs b/src/bitmap/iter.rs index 541c49ed..ac85fa33 100644 --- a/src/bitmap/iter.rs +++ b/src/bitmap/iter.rs @@ -1,5 +1,5 @@ -use alloc::vec::{self, Vec}; -use core::iter::{self, FromIterator}; +use alloc::vec; +use core::iter; use core::slice; use super::container::Container; diff --git a/src/bitmap/mod.rs b/src/bitmap/mod.rs index b3bbd080..0fce56e2 100644 --- a/src/bitmap/mod.rs +++ b/src/bitmap/mod.rs @@ -17,8 +17,6 @@ mod serde; #[cfg(feature = "std")] mod serialization; -use alloc::vec::Vec; - use self::cmp::Pairs; pub use self::iter::IntoIter; pub use self::iter::Iter; diff --git a/src/bitmap/multiops.rs b/src/bitmap/multiops.rs index fd8f5282..e3d37b51 100644 --- a/src/bitmap/multiops.rs +++ b/src/bitmap/multiops.rs @@ -5,7 +5,7 @@ use core::{ ops::{BitOrAssign, BitXorAssign}, }; -use alloc::{borrow::Cow, vec::Vec}; +use alloc::borrow::Cow; use crate::{MultiOps, RoaringBitmap}; diff --git a/src/bitmap/ops.rs b/src/bitmap/ops.rs index bfdd0ce3..75a2fa6a 100644 --- a/src/bitmap/ops.rs +++ b/src/bitmap/ops.rs @@ -1,8 +1,6 @@ use core::mem; use core::ops::{BitAnd, BitAndAssign, BitOr, BitOrAssign, BitXor, BitXorAssign, Sub, SubAssign}; -use alloc::vec::Vec; - use crate::bitmap::container::Container; use crate::bitmap::Pairs; use crate::RoaringBitmap; diff --git a/src/bitmap/serialization.rs b/src/bitmap/serialization.rs index 2ea63560..790e2d28 100644 --- a/src/bitmap/serialization.rs +++ b/src/bitmap/serialization.rs @@ -1,6 +1,6 @@ use bytemuck::cast_slice_mut; use byteorder::{LittleEndian, ReadBytesExt, WriteBytesExt}; -use core::convert::{Infallible, TryFrom}; +use core::convert::Infallible; use core::ops::RangeInclusive; use std::error::Error; use std::io; diff --git a/src/bitmap/store/array_store/mod.rs b/src/bitmap/store/array_store/mod.rs index b08bc9b6..54ae7d28 100644 --- a/src/bitmap/store/array_store/mod.rs +++ b/src/bitmap/store/array_store/mod.rs @@ -2,13 +2,9 @@ mod scalar; mod vector; mod visitor; -use alloc::boxed::Box; -use alloc::vec::Vec; - use crate::bitmap::store::array_store::visitor::{CardinalityCounter, VecWriter}; use core::cmp::Ordering; use core::cmp::Ordering::*; -use core::convert::TryFrom; use core::fmt::{Display, Formatter}; use core::ops::{BitAnd, BitAndAssign, BitOr, BitXor, RangeInclusive, Sub, SubAssign}; diff --git a/src/bitmap/store/bitmap_store.rs b/src/bitmap/store/bitmap_store.rs index 6a8c2b37..ca21e1f9 100644 --- a/src/bitmap/store/bitmap_store.rs +++ b/src/bitmap/store/bitmap_store.rs @@ -3,9 +3,6 @@ use core::cmp::Ordering; use core::fmt::{Display, Formatter}; use core::ops::{BitAndAssign, BitOrAssign, BitXorAssign, RangeInclusive, SubAssign}; -use alloc::boxed::Box; -use alloc::vec::Vec; - use super::ArrayStore; pub const BITMAP_LENGTH: usize = 1024; diff --git a/src/bitmap/store/mod.rs b/src/bitmap/store/mod.rs index c80b2078..4cba870b 100644 --- a/src/bitmap/store/mod.rs +++ b/src/bitmap/store/mod.rs @@ -1,7 +1,7 @@ mod array_store; mod bitmap_store; -use alloc::{boxed::Box, vec}; +use alloc::vec; use core::mem; use core::ops::{ BitAnd, BitAndAssign, BitOr, BitOrAssign, BitXor, BitXorAssign, RangeInclusive, Sub, SubAssign, diff --git a/src/treemap/fmt.rs b/src/treemap/fmt.rs index 86840116..3c36b72b 100644 --- a/src/treemap/fmt.rs +++ b/src/treemap/fmt.rs @@ -1,7 +1,5 @@ use core::fmt; -use alloc::vec::Vec; - use crate::RoaringTreemap; impl fmt::Debug for RoaringTreemap { diff --git a/src/treemap/inherent.rs b/src/treemap/inherent.rs index 98ef7831..e1190931 100644 --- a/src/treemap/inherent.rs +++ b/src/treemap/inherent.rs @@ -1,5 +1,4 @@ use alloc::collections::btree_map::{BTreeMap, Entry}; -use alloc::vec::Vec; use core::iter; use core::ops::RangeBounds; diff --git a/src/treemap/iter.rs b/src/treemap/iter.rs index a5239bc5..afe1fb42 100644 --- a/src/treemap/iter.rs +++ b/src/treemap/iter.rs @@ -1,5 +1,5 @@ use alloc::collections::{btree_map, BTreeMap}; -use core::iter::{self, FromIterator}; +use core::iter; use super::util; use crate::bitmap::IntoIter as IntoIter32; diff --git a/src/treemap/multiops.rs b/src/treemap/multiops.rs index f43bdf71..c50b8530 100644 --- a/src/treemap/multiops.rs +++ b/src/treemap/multiops.rs @@ -1,7 +1,4 @@ -use alloc::{ - collections::{binary_heap::PeekMut, BTreeMap, BinaryHeap}, - vec::Vec, -}; +use alloc::collections::{binary_heap::PeekMut, BTreeMap, BinaryHeap}; use core::{borrow::Borrow, cmp::Ordering, mem}; use crate::{MultiOps, RoaringBitmap, RoaringTreemap}; diff --git a/src/treemap/ops.rs b/src/treemap/ops.rs index 17e1b4a8..f1a25a2f 100644 --- a/src/treemap/ops.rs +++ b/src/treemap/ops.rs @@ -1,5 +1,4 @@ use alloc::collections::btree_map::Entry; -use alloc::vec::Vec; use core::mem; use core::ops::{BitAnd, BitAndAssign, BitOr, BitOrAssign, BitXor, BitXorAssign, Sub, SubAssign};