summaryrefslogtreecommitdiff
path: root/bench_util
diff options
context:
space:
mode:
Diffstat (limited to 'bench_util')
-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)
}