aboutsummaryrefslogtreecommitdiff
path: root/examples/nrf52840/src/bin/raw_spawn.rs
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2025-10-06 21:26:55 +0000
committerGitHub <[email protected]>2025-10-06 21:26:55 +0000
commit07016a4ffbe0b0ea689b83a6ddf19ab1b6a9a79a (patch)
treede82055258c8e3962911e85426dc91f716f04a65 /examples/nrf52840/src/bin/raw_spawn.rs
parente2a2bd3c573928208a4c85e7fcd6ad630f23f47d (diff)
parentdbf0416abd48190056a25828d8e5d8f889170f88 (diff)
Merge pull request #4744 from embassy-rs/edition2024
Edition 2024.
Diffstat (limited to 'examples/nrf52840/src/bin/raw_spawn.rs')
-rw-r--r--examples/nrf52840/src/bin/raw_spawn.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/nrf52840/src/bin/raw_spawn.rs b/examples/nrf52840/src/bin/raw_spawn.rs
index b80954408..783be763d 100644
--- a/examples/nrf52840/src/bin/raw_spawn.rs
+++ b/examples/nrf52840/src/bin/raw_spawn.rs
@@ -5,8 +5,8 @@ use core::mem;
5 5
6use cortex_m_rt::entry; 6use cortex_m_rt::entry;
7use defmt::{info, unwrap}; 7use defmt::{info, unwrap};
8use embassy_executor::raw::TaskStorage;
9use embassy_executor::Executor; 8use embassy_executor::Executor;
9use embassy_executor::raw::TaskStorage;
10use embassy_time::Timer; 10use embassy_time::Timer;
11use static_cell::StaticCell; 11use static_cell::StaticCell;
12use {defmt_rtt as _, panic_probe as _}; 12use {defmt_rtt as _, panic_probe as _};
@@ -48,5 +48,5 @@ fn main() -> ! {
48} 48}
49 49
50unsafe fn make_static<T>(t: &T) -> &'static T { 50unsafe fn make_static<T>(t: &T) -> &'static T {
51 mem::transmute(t) 51 unsafe { mem::transmute(t) }
52} 52}