chore: cleanup warning in non-swap mode

This commit is contained in:
bunnie 2024-04-09 00:06:18 +08:00
parent d318134bdc
commit 9992d29b40

View file

@ -175,6 +175,7 @@ impl BootConfig {
}
}
#[cfg(feature = "swap")]
fn alloc_swap(&mut self) -> *mut usize {
self.init_size += PAGE_SIZE;
let pg = self.get_top();