Update for changes in std::ptr::Unique API

This commit is contained in:
Ian Douglas Scott
2017-05-21 13:44:10 -07:00
parent 4d2808a012
commit 3c5b262b0e

View File

@@ -89,11 +89,11 @@ impl Mapper {
}
pub fn p4(&self) -> &Table<Level4> {
unsafe { self.p4.get() }
unsafe { self.p4.as_ref() }
}
pub fn p4_mut(&mut self) -> &mut Table<Level4> {
unsafe { self.p4.get_mut() }
unsafe { self.p4.as_mut() }
}
/// Map a page to a frame