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())) } }