Skip to content

Commit

Permalink
Fix compiler warnings on beta
Browse files Browse the repository at this point in the history
  • Loading branch information
kirk-baird committed Apr 12, 2024
1 parent 47eba81 commit e9e066a
Show file tree
Hide file tree
Showing 16 changed files with 7 additions and 31 deletions.
2 changes: 0 additions & 2 deletions src/bitmap/container.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 0 additions & 2 deletions src/bitmap/fmt.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
use core::fmt;

use alloc::vec::Vec;

use crate::RoaringBitmap;

impl fmt::Debug for RoaringBitmap {
Expand Down
2 changes: 0 additions & 2 deletions src/bitmap/inherent.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
use core::cmp::Ordering;
use core::ops::RangeBounds;

use alloc::vec::Vec;

use crate::RoaringBitmap;

use super::container::Container;
Expand Down
4 changes: 2 additions & 2 deletions src/bitmap/iter.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 0 additions & 2 deletions src/bitmap/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/bitmap/multiops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use core::{
ops::{BitOrAssign, BitXorAssign},
};

use alloc::{borrow::Cow, vec::Vec};
use alloc::borrow::Cow;

use crate::{MultiOps, RoaringBitmap};

Expand Down
2 changes: 0 additions & 2 deletions src/bitmap/ops.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/bitmap/serialization.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 0 additions & 4 deletions src/bitmap/store/array_store/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};

Expand Down
3 changes: 0 additions & 3 deletions src/bitmap/store/bitmap_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/bitmap/store/mod.rs
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 0 additions & 2 deletions src/treemap/fmt.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
use core::fmt;

use alloc::vec::Vec;

use crate::RoaringTreemap;

impl fmt::Debug for RoaringTreemap {
Expand Down
1 change: 0 additions & 1 deletion src/treemap/inherent.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use alloc::collections::btree_map::{BTreeMap, Entry};
use alloc::vec::Vec;
use core::iter;
use core::ops::RangeBounds;

Expand Down
2 changes: 1 addition & 1 deletion src/treemap/iter.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
5 changes: 1 addition & 4 deletions src/treemap/multiops.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down
1 change: 0 additions & 1 deletion src/treemap/ops.rs
Original file line number Diff line number Diff line change
@@ -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};

Expand Down

0 comments on commit e9e066a

Please sign in to comment.