Fixed most of the clippy warnings/suggestions.

This commit is contained in:
2025-02-23 02:05:13 +00:00
parent e722874cee
commit c2c552ef25
5 changed files with 28 additions and 30 deletions
+5 -4
View File
@@ -1,6 +1,6 @@
use lib_ascii::{print, println, println_log};
use lib_ascii::println_log;
use lib_serial::serial_println;
use x86_64::instructions::port::Port;
// use x86_64::instructions::port::Port;
use x86_64::registers::control::Cr2;
use x86_64::structures::idt::{InterruptDescriptorTable, InterruptStackFrame, PageFaultErrorCode};
@@ -81,7 +81,8 @@ extern "x86-interrupt" fn double_fault_handler(
}
extern "x86-interrupt" fn keyboard_interrupt_handler(_stack_frame: InterruptStackFrame) {
use pc_keyboard::{layouts, DecodedKey, HandleControl, Keyboard, ScancodeSet1};
use pc_keyboard::{layouts, HandleControl, Keyboard, ScancodeSet1};
// use pc_keyboard::DecodedKey;
use spin::Mutex;
use x86_64::instructions::port::Port;
@@ -93,7 +94,7 @@ extern "x86-interrupt" fn keyboard_interrupt_handler(_stack_frame: InterruptStac
))
});
let mut keyboard = KEYBOARD.lock();
let _keyboard = KEYBOARD.lock();
let mut port = Port::new(0x60);
let scancode: u8 = unsafe { port.read() };