diff --git a/src/internal/bloom.rs b/src/internal/bloom.rs index c9bf035..76c3aa1 100644 --- a/src/internal/bloom.rs +++ b/src/internal/bloom.rs @@ -137,9 +137,10 @@ const fn calc_shift() -> usize { + (mem::align_of::() > 2) as usize + (mem::align_of::() > 4) as usize + (mem::align_of::() > 8) as usize - + 1 // In practice this +1 results in less failures, however it's not "correct". Any TCell with a - // meaningful value happens to have a minimum size of mem::size_of::() * 2 which might - // explain why the +1 is helpful for certain workloads. + + 1 // In practice this +1 results in less failures, however it's not "correct". Any TCell + // with a meaningful value happens to have a minimum size of + // mem::size_of::() * 2 which might explain why the +1 is helpful for + // certain workloads. } #[inline] diff --git a/swym-htm/src/lib.rs b/swym-htm/src/lib.rs index 32fb5a6..4fd477a 100644 --- a/swym-htm/src/lib.rs +++ b/swym-htm/src/lib.rs @@ -3,7 +3,7 @@ #![cfg_attr(not(test), no_std)] #![feature(core_intrinsics)] #![feature(link_llvm_intrinsics)] -#![cfg_attr(test, feature(test))] +#![feature(test)] #![warn(missing_docs)] #[cfg(test)]