diff --git a/src/memory/paging/table.rs b/src/memory/paging/table.rs index 915953df..e81f671d 100644 --- a/src/memory/paging/table.rs +++ b/src/memory/paging/table.rs @@ -36,7 +36,7 @@ impl Table where L: HierachicalLevel -> &mut Table where A: FrameAllocator { - if let None = self.next_table_address(index) { + if self.next_table(index).is_none() { assert!(!self.entries[index].flags().contains(HUGE_PAGE), "mapping code does not support huge pages"); let frame = allocator.allocate_frame().expect("no frames available");