Skip to content

Commit

Permalink
Merge branch 'post-11' into post-12
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-opp committed Jan 15, 2025
2 parents 8d5540e + 4f6558c commit e1f4a05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gdt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ lazy_static! {
const STACK_SIZE: usize = 4096 * 5;
static mut STACK: [u8; STACK_SIZE] = [0; STACK_SIZE];

let stack_start = VirtAddr::from_ptr(unsafe { &STACK });
let stack_start = VirtAddr::from_ptr(&raw const STACK);
let stack_end = stack_start + STACK_SIZE;
stack_end

Check warning on line 17 in src/gdt.rs

View workflow job for this annotation

GitHub Actions / Clippy

returning the result of a `let` binding from a block

Check warning on line 17 in src/gdt.rs

View workflow job for this annotation

GitHub Actions / Clippy

returning the result of a `let` binding from a block

Check warning on line 17 in src/gdt.rs

View workflow job for this annotation

GitHub Actions / Clippy

returning the result of a `let` binding from a block
};
Expand Down

0 comments on commit e1f4a05

Please sign in to comment.