From f7ffdcf8669c812bdbafbfece593f37d8b4617cc Mon Sep 17 00:00:00 2001 From: Lukas Botsch Date: Mon, 10 Nov 2025 17:38:09 +0100 Subject: [PATCH] Make LockedFrameAllocator const constructable --- src/frame.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frame.rs b/src/frame.rs index 60f82b3..62dee2f 100644 --- a/src/frame.rs +++ b/src/frame.rs @@ -192,7 +192,7 @@ pub struct LockedFrameAllocator(Mutex LockedFrameAllocator { /// Creates an empty heap - pub fn new() -> Self { + pub const fn new() -> Self { Self(Mutex::new(FrameAllocator::new())) } }