summaryrefslogtreecommitdiff
path: root/examples/src/bin/flash.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/src/bin/flash.rs')
-rw-r--r--examples/src/bin/flash.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/src/bin/flash.rs b/examples/src/bin/flash.rs
index 2017e86..27ea01b 100644
--- a/examples/src/bin/flash.rs
+++ b/examples/src/bin/flash.rs
@@ -44,7 +44,7 @@ fn main() -> ! {
let sd = Softdevice::enable(&Default::default());
let executor = EXECUTOR.put(Executor::new());
- executor.run(|spawner| {
+ executor.run(move |spawner| {
unwrap!(spawner.spawn(softdevice_task(sd)));
unwrap!(spawner.spawn(flash_task(sd)));
});