Clippy fix

This commit is contained in:
August 2026-07-03 03:10:49 +00:00
parent df5208827c
commit ffdad93fed
Signed by: shibedrill
SSH Key Fingerprint: SHA256:M0m3JW1s38BgO2t0fG146Yxd9OJ2IOqkvCAsuRHQ6Pw
3 changed files with 11 additions and 5 deletions

View File

@ -38,4 +38,4 @@ pub fn str() -> u16 {
)
}
result
}
}

View File

@ -33,6 +33,7 @@ impl ModifyFlags for Descriptor {
}
}
#[allow(unused)]
trait ModifyAccess {
fn set_access(self, access: u8) -> Self;
}
@ -43,7 +44,7 @@ impl ModifyAccess for Descriptor {
Descriptor::UserSegment(_) => todo!(),
Descriptor::SystemSegment(a, b) => {
Descriptor::SystemSegment(a.with_bits(40..=47, access.bits(0..=7).into()), b)
},
}
}
}
}

View File

@ -42,10 +42,15 @@ use x86_64::{
use crate::{
arch::{
asm::{self, ltr, str}, x86_64::{
cpuid::{CPUID, virt_supported}, gdt::{SELECTORS, SegmentType, TSS, dump_gdt}, interrupts::get_lapic_addr,
asm::{self, ltr, str},
x86_64::{
cpuid::{CPUID, virt_supported},
gdt::{SELECTORS, dump_gdt},
interrupts::get_lapic_addr,
},
}, boot::modules::MODULE_RESPONSE, memory::paging::{self, active_root_table, map_page, phys_to_virt},
},
boot::modules::MODULE_RESPONSE,
memory::paging::{self, active_root_table, map_page, phys_to_virt},
};
lazy_static! {