From 88d0f01948b68f4a4d87e02a5138e94ac0a6eaea Mon Sep 17 00:00:00 2001 From: Aaron O'Mullan Date: Mon, 14 Mar 2022 23:38:53 +0100 Subject: feat(ops): custom arity (#13949) Also cleanup & drop ignored wildcard op-args --- core/examples/schedule_task.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/examples/schedule_task.rs') 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::>(); tx.unbounded_send(Box::new(move || println!("Hello, world! x{}", i))) .expect("unbounded_send failed"); -- cgit v1.2.3