aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/smallest.rs2
-rw-r--r--examples/spawn.rs2
-rw-r--r--examples/spawn2.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/smallest.rs b/examples/smallest.rs
index 6afcfbd4..31750e25 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 bcb4fb23..435cdf56 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 ff9516a6..ed285b70 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]