diff options
| author | Jorge Aparicio <jorge.aparicio@ferrous-systems.com> | 2021-07-21 10:14:00 +0200 |
|---|---|---|
| committer | Jorge Aparicio <jorge.aparicio@ferrous-systems.com> | 2021-07-21 10:14:00 +0200 |
| commit | 18880406cb425bcd030f0b0aa9e67e8ac05bd852 (patch) | |
| tree | b191c17c8bdc5dbfae426c61694e590436c4eb4e /examples | |
| parent | 5f7dc0b903a3d26a5bd49864dce42f3d91d3d2a8 (diff) | |
use tuple struct syntax for Monotonics everywhere
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/smallest.rs | 2 | ||||
| -rw-r--r-- | examples/spawn.rs | 2 | ||||
| -rw-r--r-- | examples/spawn2.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/smallest.rs b/examples/smallest.rs index 6afcfbd..31750e2 100644 --- a/examples/smallest.rs +++ b/examples/smallest.rs @@ -16,6 +16,6 @@ mod app { #[init] fn init(_: init::Context) -> (Shared, Local, init::Monotonics) { - (Shared {}, Local {}, init::Monotonics {}) + (Shared {}, Local {}, init::Monotonics()) } } diff --git a/examples/spawn.rs b/examples/spawn.rs index bcb4fb2..435cdf5 100644 --- a/examples/spawn.rs +++ b/examples/spawn.rs @@ -21,7 +21,7 @@ mod app { fn init(_: init::Context) -> (Shared, Local, init::Monotonics) { foo::spawn(1, 2).unwrap(); - (Shared {}, Local {}, init::Monotonics {}) + (Shared {}, Local {}, init::Monotonics()) } #[task()] diff --git a/examples/spawn2.rs b/examples/spawn2.rs index ff9516a..ed285b7 100644 --- a/examples/spawn2.rs +++ b/examples/spawn2.rs @@ -21,7 +21,7 @@ mod app { fn init(_: init::Context) -> (Shared, Local, init::Monotonics) { foo::spawn(1, 2).unwrap(); - (Shared {}, Local {}, init::Monotonics {}) + (Shared {}, Local {}, init::Monotonics()) } #[task] |
