Skip to content

Commit e90ca7e

Browse files
committed
fix: unused_imports
Signed-off-by: Martin Kröning <martin.kroening@eonerc.rwth-aachen.de>
1 parent 1b4563d commit e90ca7e

File tree

3 files changed

+6
-13
lines changed

3 files changed

+6
-13
lines changed

src/structures/paging/mapper/mapped_page_table.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
use crate::structures::paging::{
2-
frame::PhysFrame,
3-
frame_alloc::{FrameAllocator, FrameDeallocator},
42
mapper::*,
5-
page::{AddressNotAligned, Page, PageRangeInclusive, Size1GiB, Size2MiB, Size4KiB},
6-
page_table::{FrameError, PageTable, PageTableEntry, PageTableFlags, PageTableLevel},
3+
page::AddressNotAligned,
4+
page_table::{FrameError, PageTable, PageTableEntry, PageTableLevel},
75
};
86

97
/// A Mapper implementation that relies on a PhysAddr to VirtAddr conversion function.

src/structures/paging/mapper/offset_page_table.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#![cfg(target_pointer_width = "64")]
22

3-
use crate::structures::paging::{
4-
frame::PhysFrame, mapper::*, page::PageRangeInclusive, page_table::PageTable, FrameDeallocator,
5-
Page, PageTableFlags,
6-
};
3+
use crate::structures::paging::{mapper::*, page_table::PageTable};
74

85
/// A Mapper implementation that requires that the complete physically memory is mapped at some
96
/// offset in the virtual address space.

src/structures/paging/mapper/recursive_page_table.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@ use super::*;
66
use crate::registers::control::Cr3;
77
use crate::structures::paging::page_table::PageTableLevel;
88
use crate::structures::paging::{
9-
frame_alloc::FrameAllocator,
10-
page::{AddressNotAligned, NotGiantPageSize, PageRangeInclusive},
11-
page_table::{FrameError, PageTable, PageTableEntry, PageTableFlags},
12-
FrameDeallocator, Page, PageSize, PageTableIndex, PhysFrame, Size1GiB, Size2MiB, Size4KiB,
9+
page::{AddressNotAligned, NotGiantPageSize},
10+
page_table::{FrameError, PageTable, PageTableEntry},
11+
PageTableIndex,
1312
};
14-
use crate::VirtAddr;
1513

1614
/// A recursive page table is a last level page table with an entry mapped to the table itself.
1715
///

0 commit comments

Comments
 (0)