From 52a63d4c3f41bf9cee9575aa9d3cfae87e421f4e Mon Sep 17 00:00:00 2001 From: Intege-rs Date: Sun, 5 Jan 2025 02:59:21 -0500 Subject: [PATCH] const FixedVec::new --- sub/core/src/arrays.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sub/core/src/arrays.rs b/sub/core/src/arrays.rs index f377b80..9eb7877 100644 --- a/sub/core/src/arrays.rs +++ b/sub/core/src/arrays.rs @@ -12,7 +12,7 @@ pub struct FixedVec { impl FixedVec { - pub fn new() -> Self { + pub const fn new() -> Self { unsafe { core::mem::zeroed() } }