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/vt.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/vt.rs')
| -rw-r--r-- | rsnix/src/vt.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/rsnix/src/vt.rs b/rsnix/src/vt.rs index 2cfb0f3..709ea71 100644 --- a/rsnix/src/vt.rs +++ b/rsnix/src/vt.rs | |||
| @@ -224,13 +224,7 @@ fn put_byte(b: u8) { | |||
| 224 | } | 224 | } |
| 225 | 225 | ||
| 226 | fn param(i: usize, default: usize) -> usize { | 226 | fn param(i: usize, default: usize) -> usize { |
| 227 | unsafe { | 227 | unsafe { if i < NPARAMS { PARAMS[i] } else { default } } |
| 228 | if i < NPARAMS { | ||
| 229 | PARAMS[i] | ||
| 230 | } else { | ||
| 231 | default | ||
| 232 | } | ||
| 233 | } | ||
| 234 | } | 228 | } |
| 235 | 229 | ||
| 236 | /// Place a printable glyph at the cursor and advance (wrapping/scrolling). | 230 | /// Place a printable glyph at the cursor and advance (wrapping/scrolling). |
