Skip to content

Commit

Permalink
chore: make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Yttehs-HDX committed Nov 29, 2024
1 parent 73f5f0c commit cf42494
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kernel/src/boards/qemu/exit_handle.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use core::arch::asm;
use crate::entry::KERNEL_ADDR_OFFSET;
use core::arch::asm;

const EXIT_SUCCESS: u32 = 0x5555;
const EXIT_FAILURE_FLAG: u32 = 0x3333;
Expand Down
3 changes: 3 additions & 0 deletions kernel/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ lazy_static! {
pub static ref PA_START: usize = *EKERNEL;
}

// drivers
pub use crate::board::VIRT_IO;

// sections boundary
lazy_static! {
pub static ref SKERNEL: usize = skernel as usize;
Expand Down
2 changes: 1 addition & 1 deletion kernel/src/drivers/virtio/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::{
entry::KERNEL_ADDR_OFFSET,
config::KERNEL_ADDR_OFFSET,
mm::{self, PhysAddr, PpnOffset},
};
use core::{mem::forget, ptr::NonNull};
Expand Down
1 change: 1 addition & 0 deletions kernel/src/mm/memory_set/map_area/map_type.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// region MapType begin
#[derive(Clone, Copy, PartialEq, Debug)]
pub enum MapType {
#[allow(unused)]
Identity,
Framed,
Direct,
Expand Down
3 changes: 2 additions & 1 deletion kernel/src/mm/memory_set/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ use crate::{
config::{
EBSS, EDATA, ERODATA, ETEXT, KERNEL_STACK_SP, KERNEL_STACK_TOP, MMIO, PA_END, PA_START,
SBSS, SDATA, SRODATA, STEXT, SV39_PAGE_SIZE, TRAP_CX_PTR, USER_STACK_SP, USER_STACK_TOP,
}, entry::KERNEL_ADDR_OFFSET, mm::{PageTable, PageTableEntry, PpnOffset, VirtAddr, VirtPageNum}
},
mm::{PageTable, PageTableEntry, PpnOffset, VirtAddr, VirtPageNum},
};
use alloc::vec::Vec;
use core::arch::asm;
Expand Down

0 comments on commit cf42494

Please sign in to comment.