diff --git a/fixed_wide_vectors/src/macros/vector.rs b/fixed_wide_vectors/src/macros/vector.rs index d8766be..c542dfe 100644 --- a/fixed_wide_vectors/src/macros/vector.rs +++ b/fixed_wide_vectors/src/macros/vector.rs @@ -80,15 +80,13 @@ macro_rules! impl_vector { } impl Vector{ - const ALL:[bool;N]=[true;N]; - const NONE:[bool;N]=[false;N]; #[inline] pub fn all(&self)->bool{ - core::matches!(self.array,ALL) + self.array==[true;N] } #[inline] pub fn any(&self)->bool{ - !core::matches!(self.array,NONE) + self.array!=[false;N] } }