diff --git a/src/bitmap.rs b/src/bitmap.rs index 1aed295..48965aa 100644 --- a/src/bitmap.rs +++ b/src/bitmap.rs @@ -182,7 +182,7 @@ where /// Construct a bitmap from a value of the same type as its backing store. #[inline] - pub fn from_value(data: as Bits>::Store) -> Self { + pub const fn from_value(data: as Bits>::Store) -> Self { Self { data } }