We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3474333 commit 7f159e0Copy full SHA for 7f159e0
src/bootinfo/mod.rs
@@ -1,8 +1,6 @@
1
#![deny(improper_ctypes)]
2
3
pub use self::memory_map::*;
4
-use core::ops::Deref;
5
-use core::slice;
6
7
mod memory_map;
8
@@ -14,9 +12,7 @@ pub struct BootInfo {
14
12
15
13
impl BootInfo {
16
pub fn new(memory_map: MemoryMap) -> Self {
17
- BootInfo {
18
- memory_map,
19
- }
+ BootInfo { memory_map }
20
}
21
22
src/frame_allocator.rs
@@ -1,6 +1,6 @@
+use super::{frame_range, phys_frame_range};
use bootloader::bootinfo::{MemoryMap, MemoryRegion, MemoryRegionType};
use x86_64::structures::paging::{PhysFrame, PhysFrameRange};
-use super::{frame_range, phys_frame_range};
pub(crate) struct FrameAllocator<'a> {
pub memory_map: &'a mut MemoryMap,
0 commit comments