From 7c5603b2fed27be86982665a8b10dcd8f1c5a483 Mon Sep 17 00:00:00 2001 From: salmonik Date: Sat, 1 Aug 2026 03:47:51 +0200 Subject: Bump workspace to edition 2024 - edition = "2024" in the workspace manifest and rsdosedit - extern blocks must be unsafe: interrupts.rs ISR stubs -> unsafe extern "C" - #[no_mangle] -> #[unsafe(no_mangle)] (efi_main, isr_dispatch) - One missed static-mut read in free_list_insert wrapped in an explicit unsafe block (edition 2024 removed the implicit unsafe context inside unsafe fns) - rustfmt reflows for 2024: nested if-lets become let-chains, imports re-sorted, rsdosedit help-screen box rows wrapped No codegen-affecting changes. Validated: cargo check/clippy/fmt clean (host + uefi target), make test-disk PASS, editor round-trip PASS. --- rsnix/src/pci.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'rsnix/src/pci.rs') diff --git a/rsnix/src/pci.rs b/rsnix/src/pci.rs index efdbc01..21d7536 100644 --- a/rsnix/src/pci.rs +++ b/rsnix/src/pci.rs @@ -83,11 +83,7 @@ pub fn bar64(bus: u8, device: u8, func: u8, bar_index: u8) -> Option { 0 }; let base = ((hi as u64) << 32) | (lo as u64 & 0xFFFF_FFF0); - if base == 0 { - None - } else { - Some(base) - } + if base == 0 { None } else { Some(base) } } /// Enumerate every device/function present on all buses. -- cgit v1.2.3