Remove now unneeded unsafe block

The `map_to` method is safe since x86_64 0.8.1.
This commit is contained in:
Philipp Oppermann
2019-12-11 16:47:40 +01:00
parent e94a489a31
commit 3ac5318c94

View File

@@ -27,7 +27,7 @@ pub fn init_heap(
.allocate_frame()
.ok_or(MapToError::FrameAllocationFailed)?;
let flags = PageTableFlags::PRESENT | PageTableFlags::WRITABLE;
unsafe { mapper.map_to(page, frame, flags, frame_allocator)?.flush() };
mapper.map_to(page, frame, flags, frame_allocator)?.flush();
}
unsafe {