summaryrefslogtreecommitdiff
path: root/bench_util/benches
diff options
context:
space:
mode:
authorAaron O'Mullan <aaron.omullan@gmail.com>2022-03-14 23:38:53 +0100
committerGitHub <noreply@github.com>2022-03-14 23:38:53 +0100
commit88d0f01948b68f4a4d87e02a5138e94ac0a6eaea (patch)
tree2b50e5d2c6990c94f47e604281f3557b3efd9736 /bench_util/benches
parent9f494dc405afc4b1b29fa4c813bd5751f26aaa36 (diff)
feat(ops): custom arity (#13949)
Also cleanup & drop ignored wildcard op-args
Diffstat (limited to 'bench_util/benches')
-rw-r--r--bench_util/benches/op_baseline.rs10
1 files changed, 3 insertions, 7 deletions
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<Extension> {
}
#[op]
-fn op_nop(_: &mut OpState, _: (), _: ()) -> Result<(), AnyError> {
+fn op_nop(_: &mut OpState) -> Result<(), AnyError> {
Ok(())
}
#[op]
-fn op_pi_json(_: &mut OpState, _: (), _: ()) -> Result<i64, AnyError> {
+fn op_pi_json(_: &mut OpState) -> Result<i64, AnyError> {
Ok(314159)
}
// this is a function since async closures aren't stable
#[op]
-async fn op_pi_async(
- _: Rc<RefCell<OpState>>,
- _: (),
- _: (),
-) -> Result<i64, AnyError> {
+async fn op_pi_async(_: Rc<RefCell<OpState>>) -> Result<i64, AnyError> {
Ok(314159)
}