diff options
| author | Emil Fresk <emil.fresk@gmail.com> | 2023-01-02 14:34:05 +0100 |
|---|---|---|
| committer | Henrik Tjäder <henrik@tjaders.com> | 2023-03-01 00:31:01 +0100 |
| commit | 582c602912592ec7ebea3096aefa02aea99c2143 (patch) | |
| tree | 96b14a130788960ee06d7e80adec43a167b4844b /examples/cfg-whole-task.rs | |
| parent | 7614b96fe45240dafe91ae549e712b560e2d4c10 (diff) | |
Old xtask test pass
Diffstat (limited to 'examples/cfg-whole-task.rs')
| -rw-r--r-- | examples/cfg-whole-task.rs | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/examples/cfg-whole-task.rs b/examples/cfg-whole-task.rs index 17f31f4..f41866d 100644 --- a/examples/cfg-whole-task.rs +++ b/examples/cfg-whole-task.rs @@ -2,7 +2,6 @@ #![deny(unsafe_code)] #![deny(warnings)] -#![deny(missing_docs)] #![no_main] #![no_std] @@ -82,19 +81,6 @@ mod app { // .. } - // The whole task should disappear, - // currently still present in the Tasks enum - #[cfg(never)] - #[task(binds = UART1, shared = [count])] - fn foo3(mut _cx: foo3::Context) { - #[cfg(debug_assertions)] - { - _cx.shared.count.lock(|count| *count += 10); - - log::spawn(_cx.shared.count.lock(|count| *count)).unwrap(); - } - } - #[cfg(debug_assertions)] #[task(capacity = 2)] fn log(_: log::Context, n: u32) { @@ -102,6 +88,7 @@ mod app { "foo has been called {} time{}", n, if n == 1 { "" } else { "s" } - ); + ) + .ok(); } } |
