mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-17 14:57:49 +00:00
Use new Unique API (#346)
Change Unique to use `new_unchecked`. Fixes #345.
This commit is contained in:
committed by
Philipp Oppermann
parent
e54cfa4378
commit
2ebd4ed954
@@ -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),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user