Skip to content

Commit 6bef649

Browse files
committed
Remove unused imports and run rustfmt
1 parent 4672878 commit 6bef649

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/bootinfo/mod.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![deny(improper_ctypes)]
22

33
pub use self::memory_map::*;
4-
use core::ops::Deref;
5-
use core::slice;
64

75
mod memory_map;
86

@@ -14,9 +12,7 @@ pub struct BootInfo {
1412

1513
impl BootInfo {
1614
pub fn new(memory_map: MemoryMap) -> Self {
17-
BootInfo {
18-
memory_map,
19-
}
15+
BootInfo { memory_map }
2016
}
2117
}
2218

src/frame_allocator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
use super::{frame_range, phys_frame_range};
12
use bootloader::bootinfo::{MemoryMap, MemoryRegion, MemoryRegionType};
23
use x86_64::structures::paging::{PhysFrame, PhysFrameRange};
3-
use super::{frame_range, phys_frame_range};
44

55
pub(crate) struct FrameAllocator<'a> {
66
pub memory_map: &'a mut MemoryMap,

0 commit comments

Comments
 (0)