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/modules.rs | |
parent | 9f494dc405afc4b1b29fa4c813bd5751f26aaa36 (diff) |
feat(ops): custom arity (#13949)
Also cleanup & drop ignored wildcard op-args
Diffstat (limited to 'core/modules.rs')
-rw-r--r-- | core/modules.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules.rs b/core/modules.rs index 7c5274193..481091e0f 100644 --- a/core/modules.rs +++ b/core/modules.rs @@ -1406,7 +1406,7 @@ import "/a.js"; static DISPATCH_COUNT: AtomicUsize = AtomicUsize::new(0); #[op] - fn op_test(_: &mut OpState, control: u8, _: ()) -> Result<u8, AnyError> { + fn op_test(_: &mut OpState, control: u8) -> Result<u8, AnyError> { DISPATCH_COUNT.fetch_add(1, Ordering::Relaxed); assert_eq!(control, 42); Ok(43) |