diff options
author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2022-03-14 23:38:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-14 23:38:53 +0100 |
commit | 88d0f01948b68f4a4d87e02a5138e94ac0a6eaea (patch) | |
tree | 2b50e5d2c6990c94f47e604281f3557b3efd9736 /core/examples/schedule_task.rs | |
parent | 9f494dc405afc4b1b29fa4c813bd5751f26aaa36 (diff) |
feat(ops): custom arity (#13949)
Also cleanup & drop ignored wildcard op-args
Diffstat (limited to 'core/examples/schedule_task.rs')
-rw-r--r-- | core/examples/schedule_task.rs | 2 |
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"); |