Fix some clippy errors

This commit is contained in:
2025-03-03 14:53:30 +00:00
parent 5703032f87
commit 2d3bc56962
4 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ use x86_64::{
};
use crate::arch::x86_64::cpu::msr::*;
use crate::arch::x86_64::memory::memory::{FRAME_ALLOCATOR, OFFSET_PAGE_TABLE};
use crate::arch::x86_64::memory::{FRAME_ALLOCATOR, OFFSET_PAGE_TABLE};
const IA32_APIC_BASE_MSR: u32 = 0x1b;
const IA32_APIC_BASE_MSR_BSP: u64 = 0x100;
+1 -1
View File
@@ -6,7 +6,7 @@ use x86_64::structures::paging::mapper::MapperFlushAll;
use x86_64::structures::paging::{FrameAllocator, Mapper, Page, PageTableFlags, Size4KiB};
use super::gdt;
use crate::arch::x86_64::memory::memory::{FRAME_ALLOCATOR, OFFSET_PAGE_TABLE};
use crate::arch::x86_64::memory::{FRAME_ALLOCATOR, OFFSET_PAGE_TABLE};
use crate::{println_log, serial_println};
use spin::{Lazy, Mutex};
+7 -5
View File
@@ -12,8 +12,10 @@
)]
extern crate alloc;
use crate::prelude::*;
use crate::arch::x86_64::memory::memory::{init_frame_allocator, init_page_table};
use crate::{
arch::x86_64::memory::{init_frame_allocator, init_page_table},
prelude::*,
};
use arch::x86_64::memory::allocation::allocator::init_heap;
use arch::x86_64::memory::memory_map;
use core::arch::asm;
@@ -27,10 +29,10 @@ pub mod std;
pub mod util;
pub mod prelude {
pub use crate::std::io::{
_print, _print_log, _serial_write
pub use crate::std::io::{_print, _print_log, _serial_write};
pub use crate::{
print, print_log, printerr, println, println_log, printlnerr, serial_print, serial_println,
};
pub use crate::{print, println, print_log, println_log, printerr, printlnerr, serial_print, serial_println};
}
/// Sets the base revision to the latest revision supported by the crate.
+1 -3
View File
@@ -31,7 +31,5 @@ extern "C" fn kmain() -> ! {
let mut executor = Executor::new();
executor.spawn(Task::new(shell()));
executor.run();
loop {}
executor.run()
}