Skip to content

Commit

Permalink
Fix building with no-std
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerollmops committed Jun 5, 2024
1 parent 77166fa commit 4466ae0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/bitmap/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ mod cmp;
mod inherent;
mod iter;
mod ops;
#[cfg(feature = "std")]
mod ops_with_serialized;
#[cfg(feature = "serde")]
mod serde;
Expand Down
7 changes: 2 additions & 5 deletions src/bitmap/ops_with_serialized.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use bytemuck::cast_slice_mut;
use byteorder::{LittleEndian, ReadBytesExt};
use core::convert::Infallible;
use core::mem;
use core::ops::RangeInclusive;
use std::error::Error;
use std::io::{self, SeekFrom};
use std::mem;
use std::ops::RangeInclusive;

use crate::bitmap::container::Container;
use crate::bitmap::serialization::{
Expand All @@ -13,9 +13,6 @@ use crate::bitmap::serialization::{
};
use crate::RoaringBitmap;

#[cfg(not(feature = "std"))]
use alloc::vec::Vec;

use super::container::ARRAY_LIMIT;
use super::store::{ArrayStore, BitmapStore, Store, BITMAP_LENGTH};

Expand Down

0 comments on commit 4466ae0

Please sign in to comment.