We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 00318d3 + f7ffdcf commit 001b08eCopy full SHA for 001b08e
src/frame.rs
@@ -192,7 +192,7 @@ pub struct LockedFrameAllocator<const ORDER: usize = 33>(Mutex<FrameAllocator<OR
192
#[cfg(feature = "use_spin")]
193
impl<const ORDER: usize> LockedFrameAllocator<ORDER> {
194
/// Creates an empty heap
195
- pub fn new() -> Self {
+ pub const fn new() -> Self {
196
Self(Mutex::new(FrameAllocator::new()))
197
}
198
0 commit comments