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 --- bench_util/benches/op_baseline.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'bench_util/benches') diff --git a/bench_util/benches/op_baseline.rs b/bench_util/benches/op_baseline.rs index 929e573cd..07c4905a9 100644 --- a/bench_util/benches/op_baseline.rs +++ b/bench_util/benches/op_baseline.rs @@ -22,22 +22,18 @@ fn setup() -> Vec { } #[op] -fn op_nop(_: &mut OpState, _: (), _: ()) -> Result<(), AnyError> { +fn op_nop(_: &mut OpState) -> Result<(), AnyError> { Ok(()) } #[op] -fn op_pi_json(_: &mut OpState, _: (), _: ()) -> Result { +fn op_pi_json(_: &mut OpState) -> Result { Ok(314159) } // this is a function since async closures aren't stable #[op] -async fn op_pi_async( - _: Rc>, - _: (), - _: (), -) -> Result { +async fn op_pi_async(_: Rc>) -> Result { Ok(314159) } -- cgit v1.2.3