Fix some warnings

This commit is contained in:
bjorn3
2017-04-29 11:45:53 +02:00
parent 0a457bdced
commit 37b4ac151b
5 changed files with 14 additions and 10 deletions
+1
View File
@@ -43,6 +43,7 @@ impl BumpAllocator {
}
impl FrameAllocator for BumpAllocator {
#[allow(unused)]
fn set_noncore(&mut self, noncore: bool) {}
fn free_frames(&self) -> usize {
+1 -1
View File
@@ -5,7 +5,7 @@ use collections::Vec;
use paging::PhysicalAddress;
use super::{Frame, FrameAllocator, MemoryArea, MemoryAreaIter};
use super::{Frame, FrameAllocator};
pub struct RecycleAllocator<T: FrameAllocator> {
inner: T,