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 --- runtime/ops/process.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'runtime/ops/process.rs') diff --git a/runtime/ops/process.rs b/runtime/ops/process.rs index 7c45c47fc..3bc516a80 100644 --- a/runtime/ops/process.rs +++ b/runtime/ops/process.rs @@ -99,11 +99,7 @@ struct RunInfo { } #[op] -fn op_run( - state: &mut OpState, - run_args: RunArgs, - _: (), -) -> Result { +fn op_run(state: &mut OpState, run_args: RunArgs) -> Result { let args = run_args.cmd; state.borrow_mut::().run.check(&args[0])?; let env = run_args.env; @@ -227,7 +223,6 @@ struct ProcessStatus { async fn op_run_status( state: Rc>, rid: ResourceId, - _: (), ) -> Result { let resource = state .borrow_mut() -- cgit v1.2.3