Unique::get/get_mut were renamed to as_ref/as_mut (#325)

This commit is contained in:
Philipp Oppermann
2017-05-12 21:32:38 +02:00
committed by GitHub
parent 160b986322
commit f3829346bc
4 changed files with 8 additions and 8 deletions

View File

@@ -23,11 +23,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() }
}
pub fn translate(&self, virtual_address: VirtualAddress) -> Option<PhysicalAddress> {