From 8e760c975c6baebf0d545aaf4dfe0f677886829c Mon Sep 17 00:00:00 2001 From: GZTime Date: Sun, 8 Dec 2024 21:12:27 +0800 Subject: [PATCH] fix(no_std): use `core::slice` in `bitmap_store.rs` --- roaring/src/bitmap/store/bitmap_store.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roaring/src/bitmap/store/bitmap_store.rs b/roaring/src/bitmap/store/bitmap_store.rs index b4d88b76..cf4649c1 100644 --- a/roaring/src/bitmap/store/bitmap_store.rs +++ b/roaring/src/bitmap/store/bitmap_store.rs @@ -61,7 +61,7 @@ impl BitmapStore { // Safety: It's safe to reinterpret u64s as u8s because u8 has less alignment requirements, // and has no padding/uninitialized data. let dst = unsafe { - std::slice::from_raw_parts_mut(bits.as_mut_ptr().cast::(), BITMAP_BYTES) + core::slice::from_raw_parts_mut(bits.as_mut_ptr().cast::(), BITMAP_BYTES) }; let dst = &mut dst[byte_offset..][..bytes.len()]; dst.copy_from_slice(bytes);