Skip to content

Commit 6f843ac

Browse files
committed
remove mask and without alloc
1 parent 1495ba5 commit 6f843ac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ pub use with_const_generics::ConstGenericRingBuffer;
3333

3434
/// Used internally. Computes the bitmask used to properly wrap the ringbuffers.
3535
#[inline]
36+
#[cfg(feature = "alloc")]
3637
const fn mask_and(cap: usize, index: usize) -> usize {
3738
debug_assert!(cap.is_power_of_two());
3839
index & (cap - 1)

0 commit comments

Comments
 (0)