diff options
| author | Ulf Lilleengen <[email protected]> | 2025-05-09 13:05:23 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-09 13:05:23 +0200 |
| commit | 64a2b9b2a36adbc26117b8e76ae2b178a5e3eb9f (patch) | |
| tree | 22fba36ec13d257189701e4a053b930032480cb3 /examples/stm32wl/src/bin/uart_async.rs | |
| parent | aa8703360e913ae39cf8f24aae4a68158b7d6208 (diff) | |
| parent | f5ddb9358f841d1a1e3a996eb30d7d9fd5d44d38 (diff) | |
Merge pull request #4170 from yutannihilation/chore/fix-unsafe-attribute-rust2024
chore: Wrap `link_section` attribute in example code with `unsafe()` for compatibility with Rust 2024 edition
Diffstat (limited to 'examples/stm32wl/src/bin/uart_async.rs')
| -rw-r--r-- | examples/stm32wl/src/bin/uart_async.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32wl/src/bin/uart_async.rs b/examples/stm32wl/src/bin/uart_async.rs index ece9b9201..505a85f47 100644 --- a/examples/stm32wl/src/bin/uart_async.rs +++ b/examples/stm32wl/src/bin/uart_async.rs | |||
| @@ -14,7 +14,7 @@ bind_interrupts!(struct Irqs{ | |||
| 14 | LPUART1 => InterruptHandler<peripherals::LPUART1>; | 14 | LPUART1 => InterruptHandler<peripherals::LPUART1>; |
| 15 | }); | 15 | }); |
| 16 | 16 | ||
| 17 | #[link_section = ".shared_data"] | 17 | #[unsafe(link_section = ".shared_data")] |
| 18 | static SHARED_DATA: MaybeUninit<SharedData> = MaybeUninit::uninit(); | 18 | static SHARED_DATA: MaybeUninit<SharedData> = MaybeUninit::uninit(); |
| 19 | 19 | ||
| 20 | /* | 20 | /* |
