From ff12867b0272265b8294f9d2a428642d84b12196 Mon Sep 17 00:00:00 2001 From: Berkus Decker Date: Sun, 28 Feb 2021 00:44:14 +0200 Subject: [PATCH] [sq] fix unused Result --- nucleus/src/boot_info.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nucleus/src/boot_info.rs b/nucleus/src/boot_info.rs index fc54e05..40b99f8 100644 --- a/nucleus/src/boot_info.rs +++ b/nucleus/src/boot_info.rs @@ -118,7 +118,7 @@ impl BootInfo { /* Remove the region in question */ self.regions[reg_index] = BootInfoMemRegion::new(); /* Add the remaining regions in largest to smallest order */ - self.insert_region(rem_large); + self.insert_region(rem_large)?; if self.insert_region(rem_small).is_err() { println!("BootInfo::alloc_region(): wasted {} bytes due to alignment, try to increase NUM_MEM_REGIONS", rem_small.size()); }