Skip to content

Commit f7ffdcf

Browse files
committed
Make LockedFrameAllocator const constructable
1 parent 57ff112 commit f7ffdcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/frame.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ pub struct LockedFrameAllocator<const ORDER: usize = 33>(Mutex<FrameAllocator<OR
192192
#[cfg(feature = "use_spin")]
193193
impl<const ORDER: usize> LockedFrameAllocator<ORDER> {
194194
/// Creates an empty heap
195-
pub fn new() -> Self {
195+
pub const fn new() -> Self {
196196
Self(Mutex::new(FrameAllocator::new()))
197197
}
198198
}

0 commit comments

Comments
 (0)