Skip to content

Commit

Permalink
Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Lockna committed Aug 20, 2024
1 parent e925abf commit 02d8261
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions crates/libxernel/src/sync/once.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,9 @@ impl<T> Deref for Once<T> {
}
}
}

impl<T> Default for Once<T> {
fn default() -> Self {
Self::new()
}
}
2 changes: 1 addition & 1 deletion xernel/kernel/src/arch/amd64/gdt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub struct Selectors {
pub fn init() {
let mut tss = TaskStateSegment::new();
tss.interrupt_stack_table[DOUBLE_FAULT_IST_INDEX as usize] = {
let stack_start = VirtAddr::from_ptr(unsafe { addr_of!(BSP_IST_STACK) });
let stack_start = VirtAddr::from_ptr(addr_of!(BSP_IST_STACK));
stack_start + IST_STACK_SIZE as u64
};

Expand Down

0 comments on commit 02d8261

Please sign in to comment.