Skip to content

Commit 001b08e

Browse files
authored
Merge pull request #40 from lbotsch/master
Make LockedFrameAllocator const constructable
2 parents 00318d3 + f7ffdcf commit 001b08e

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)