From 3c5b262b0e4b6c24a1f71575d7e2c879fd107b0f Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Sun, 21 May 2017 13:44:10 -0700 Subject: [PATCH] Update for changes in std::ptr::Unique API --- src/paging/mapper.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/paging/mapper.rs b/src/paging/mapper.rs index b3830bf..c530b9f 100644 --- a/src/paging/mapper.rs +++ b/src/paging/mapper.rs @@ -89,11 +89,11 @@ impl Mapper { } pub fn p4(&self) -> &Table { - unsafe { self.p4.get() } + unsafe { self.p4.as_ref() } } pub fn p4_mut(&mut self) -> &mut Table { - unsafe { self.p4.get_mut() } + unsafe { self.p4.as_mut() } } /// Map a page to a frame