diff options
| author | Ian McIntyre <me@mciantyre.dev> | 2025-06-14 10:16:12 -0400 |
|---|---|---|
| committer | Ian McIntyre <me@mciantyre.dev> | 2025-09-16 07:47:23 -0400 |
| commit | 9728ac5305cfe259115858f0bc49985a0ad7cec4 (patch) | |
| tree | 16294fb24be29ebedd3099b063348c0520000db4 /board/src/shared | |
| parent | ce97696bcd4515b5b2556163aa50c1b4723e7c0f (diff) | |
Adopt Rust 2024 edition
I'm considering this a breaking change. I'll try to introduce new
sections that rely on the user's `unsafe` keyword for linker placement.
Rust 2024 has different opinions on format, and clippy has new thoughts.
Let's adopt them.
Diffstat (limited to 'board/src/shared')
| -rw-r--r-- | board/src/shared/imxrt10xx.rs | 2 | ||||
| -rw-r--r-- | board/src/shared/imxrt11xx.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/board/src/shared/imxrt10xx.rs b/board/src/shared/imxrt10xx.rs index 5ba44eb..71a9065 100644 --- a/board/src/shared/imxrt10xx.rs +++ b/board/src/shared/imxrt10xx.rs @@ -4,7 +4,7 @@ use crate::ral; pub(crate) fn prepare_pit(timer_delay_microseconds: u32) -> Option<crate::Pit> { #[cfg(feature = "rtic")] { - extern "C" { + unsafe extern "C" { // Not actually mut in cortex-m. But, no one is reading it... static __INTERRUPTS: [core::cell::UnsafeCell<unsafe extern "C" fn()>; 240]; fn PIT(); diff --git a/board/src/shared/imxrt11xx.rs b/board/src/shared/imxrt11xx.rs index e0d1074..2620157 100644 --- a/board/src/shared/imxrt11xx.rs +++ b/board/src/shared/imxrt11xx.rs @@ -5,7 +5,7 @@ use crate::ral; pub(crate) fn prepare_pit(timer_delay_microseconds: u32) -> Option<crate::Pit> { #[cfg(feature = "rtic")] { - extern "C" { + unsafe extern "C" { // Not actually mut in cortex-m. But, no one is reading it... static __INTERRUPTS: [core::cell::UnsafeCell<unsafe extern "C" fn()>; 240]; fn PIT(); |
