We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a59bf9f + b349961 commit df502ffCopy full SHA for df502ff
testing/src/gdt.rs
@@ -13,7 +13,7 @@ lazy_static! {
13
const STACK_SIZE: usize = 4096;
14
static mut STACK: [u8; STACK_SIZE] = [0; STACK_SIZE];
15
16
- let stack_start = VirtAddr::from_ptr(unsafe { ptr::addr_of!(STACK) });
+ let stack_start = VirtAddr::from_ptr(ptr::addr_of!(STACK));
17
let stack_end = stack_start + STACK_SIZE as u64;
18
stack_end
19
};
0 commit comments