summaryrefslogtreecommitdiff
path: root/core/examples/schedule_task.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/examples/schedule_task.rs')
-rw-r--r--core/examples/schedule_task.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/examples/schedule_task.rs b/core/examples/schedule_task.rs
index 3ada86417..7812dcb49 100644
--- a/core/examples/schedule_task.rs
+++ b/core/examples/schedule_task.rs
@@ -62,7 +62,7 @@ fn main() {
}
#[op]
-fn op_schedule_task(state: &mut OpState, i: u8, _: ()) -> Result<(), Error> {
+fn op_schedule_task(state: &mut OpState, i: u8) -> Result<(), Error> {
let tx = state.borrow_mut::<mpsc::UnboundedSender<Task>>();
tx.unbounded_send(Box::new(move || println!("Hello, world! x{}", i)))
.expect("unbounded_send failed");