diff options
| author | Jorge Aparicio <jorge@japaric.io> | 2019-04-21 20:13:15 +0200 |
|---|---|---|
| committer | Jorge Aparicio <jorge@japaric.io> | 2019-05-01 20:49:25 +0200 |
| commit | d2fb62f729de3ad24132b69298e17193ac334df4 (patch) | |
| tree | 9c1e56f6056b2cef796a33a9607ddb039e70a7c6 /tests/cpass/late-resource.rs | |
| parent | 1b4b006bab7ee05e403a4fc48ae751d037f95b1a (diff) | |
update compile-pass tests
Diffstat (limited to 'tests/cpass/late-resource.rs')
| -rw-r--r-- | tests/cpass/late-resource.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/cpass/late-resource.rs b/tests/cpass/late-resource.rs index 0dec4cb..37dcf33 100644 --- a/tests/cpass/late-resource.rs +++ b/tests/cpass/late-resource.rs @@ -1,4 +1,6 @@ //! Runtime initialized resources +#![deny(unsafe_code)] +#![deny(warnings)] #![no_main] #![no_std] @@ -6,15 +8,13 @@ extern crate lm3s6965; extern crate panic_halt; extern crate rtfm; -use rtfm::app; - -#[app(device = lm3s6965)] +#[rtfm::app(device = lm3s6965)] const APP: () = { static mut X: u32 = (); static Y: u32 = (); #[init] - fn init() -> init::LateResources { + fn init(_: init::Context) -> init::LateResources { init::LateResources { X: 0, Y: 1 } } }; |
