From 302970f76d3fd38b831e853e9193cbe379a548ee Mon Sep 17 00:00:00 2001 From: Putta Khunchalee Date: Sat, 7 Sep 2024 23:51:58 +0700 Subject: [PATCH] Fixes clippy --- src/obkrnl/src/malloc/stage2.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/obkrnl/src/malloc/stage2.rs b/src/obkrnl/src/malloc/stage2.rs index 367272c18..22ff5aa62 100644 --- a/src/obkrnl/src/malloc/stage2.rs +++ b/src/obkrnl/src/malloc/stage2.rs @@ -11,7 +11,7 @@ use core::alloc::Layout; /// This stage allocate a memory from a virtual memory management system. This struct is a merge of /// `malloc_type` and `malloc_type_internal` structure. pub struct Stage2 { - zones: [Vec>; size_of::() * 8 - 1], // kmemsize + kmemzones + zones: [Vec>; (usize::BITS - 1) as usize], // kmemsize + kmemzones } impl Stage2 {