diff options
| author | salmonik <salmonik@tuta.io> | 2026-08-01 03:47:51 +0200 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-08-01 03:47:51 +0200 |
| commit | 7c5603b2fed27be86982665a8b10dcd8f1c5a483 (patch) | |
| tree | e808380c9411c1847ff12aa2a35c94776b1f5292 /rsnix/src/power.rs | |
| parent | Clean up warnings, fix FAT32 multi-cluster dirs, prep for edition 2024 (diff) | |
| download | rs-dos-7c5603b2fed27be86982665a8b10dcd8f1c5a483.tar.gz rs-dos-7c5603b2fed27be86982665a8b10dcd8f1c5a483.zip | |
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.
Diffstat (limited to 'rsnix/src/power.rs')
| -rw-r--r-- | rsnix/src/power.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rsnix/src/power.rs b/rsnix/src/power.rs index cb5d296..3ca0f25 100644 --- a/rsnix/src/power.rs +++ b/rsnix/src/power.rs | |||
| @@ -9,7 +9,7 @@ | |||
| 9 | // QEMU this makes the VM exit, on real hardware the power drops. | 9 | // QEMU this makes the VM exit, on real hardware the power drops. |
| 10 | // --------------------------------------------------------------------------- | 10 | // --------------------------------------------------------------------------- |
| 11 | 11 | ||
| 12 | use crate::uefi::{RuntimeServices, EFI_SUCCESS, RESET_SHUTDOWN}; | 12 | use crate::uefi::{EFI_SUCCESS, RESET_SHUTDOWN, RuntimeServices}; |
| 13 | 13 | ||
| 14 | static mut RUNTIME_SERVICES: *mut RuntimeServices = core::ptr::null_mut(); | 14 | static mut RUNTIME_SERVICES: *mut RuntimeServices = core::ptr::null_mut(); |
| 15 | 15 | ||
