Use new Unique API (#346)

Change Unique to use `new_unchecked`. Fixes #345.
This commit is contained in:
Tim Crawford
2017-08-05 00:47:15 -04:00
committed by Philipp Oppermann
parent e54cfa4378
commit 2ebd4ed954
4 changed files with 6 additions and 6 deletions

View File

@@ -659,7 +659,7 @@ Because the `ActivePageTable` owns the unique recursive mapped P4 table, there m
impl ActivePageTable {
pub unsafe fn new() -> ActivePageTable {
ActivePageTable {
p4: Unique::new(table::P4),
p4: Unique::new_unchecked(table::P4),
}
}
}