From b34996173fe1f9ff94160d1a7319f5af95583525 Mon Sep 17 00:00:00 2001 From: Tom Dohrmann Date: Wed, 31 Jul 2024 12:36:15 +0200 Subject: [PATCH] fix warning in integration test --- testing/src/gdt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/src/gdt.rs b/testing/src/gdt.rs index 2fa192dd..28620921 100644 --- a/testing/src/gdt.rs +++ b/testing/src/gdt.rs @@ -13,7 +13,7 @@ lazy_static! { const STACK_SIZE: usize = 4096; static mut STACK: [u8; STACK_SIZE] = [0; STACK_SIZE]; - let stack_start = VirtAddr::from_ptr(unsafe { ptr::addr_of!(STACK) }); + let stack_start = VirtAddr::from_ptr(ptr::addr_of!(STACK)); let stack_end = stack_start + STACK_SIZE as u64; stack_end };