diff options
Diffstat (limited to 'examples/not-sync.rs')
-rw-r--r-- | examples/not-sync.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/examples/not-sync.rs b/examples/not-sync.rs index a7eaac8e..75816424 100644 --- a/examples/not-sync.rs +++ b/examples/not-sync.rs @@ -15,7 +15,11 @@ pub struct NotSync { } #[rtic::app(device = lm3s6965)] -const APP: () = { +mod app { + use super::NotSync; + use core::marker::PhantomData; + + #[resources] struct Resources { #[init(NotSync { _0: PhantomData })] shared: NotSync, @@ -42,4 +46,4 @@ const APP: () = { extern "C" { fn SSI0(); } -}; +} |