From 88f1e4bf8a118511ab4c583dc59be0d740e73801 Mon Sep 17 00:00:00 2001 From: funestia Date: Thu, 30 Oct 2025 22:02:01 +0100 Subject: [PATCH] marked Bitmap::from_value as const --- src/bitmap.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } }