Skip to content

Commit 4466ae0

Browse files
committed
Fix building with no-std
1 parent 77166fa commit 4466ae0

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/bitmap/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ mod cmp;
1212
mod inherent;
1313
mod iter;
1414
mod ops;
15+
#[cfg(feature = "std")]
1516
mod ops_with_serialized;
1617
#[cfg(feature = "serde")]
1718
mod serde;

src/bitmap/ops_with_serialized.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
use bytemuck::cast_slice_mut;
22
use byteorder::{LittleEndian, ReadBytesExt};
33
use core::convert::Infallible;
4-
use core::mem;
5-
use core::ops::RangeInclusive;
64
use std::error::Error;
75
use std::io::{self, SeekFrom};
6+
use std::mem;
7+
use std::ops::RangeInclusive;
88

99
use crate::bitmap::container::Container;
1010
use crate::bitmap::serialization::{
@@ -13,9 +13,6 @@ use crate::bitmap::serialization::{
1313
};
1414
use crate::RoaringBitmap;
1515

16-
#[cfg(not(feature = "std"))]
17-
use alloc::vec::Vec;
18-
1916
use super::container::ARRAY_LIMIT;
2017
use super::store::{ArrayStore, BitmapStore, Store, BITMAP_LENGTH};
2118

0 commit comments

Comments
 (0)