cargo fmt

This commit is contained in:
2022-01-13 12:11:03 +08:00
parent 042405c597
commit 9ee7a85dcc
10 changed files with 70 additions and 54 deletions

View File

@@ -33,9 +33,7 @@ pub fn create_example_mapping(
let frame = PhysFrame::containing_address(PhysAddr::new(0xb8000));
let flags = Flags::PRESENT | Flags::WRITABLE;
let map_to_result = unsafe {
mapper.map_to(page, frame, flags, frame_allocator)
};
let map_to_result = unsafe { mapper.map_to(page, frame, flags, frame_allocator) };
map_to_result.expect("map_to failed").flush();
}