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 --- ext/crypto/lib.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'ext/crypto/lib.rs') diff --git a/ext/crypto/lib.rs b/ext/crypto/lib.rs index 3b33830d3..e45e3d272 100644 --- a/ext/crypto/lib.rs +++ b/ext/crypto/lib.rs @@ -115,7 +115,6 @@ pub fn init(maybe_seed: Option) -> Extension { pub fn op_crypto_get_random_values( state: &mut OpState, mut zero_copy: ZeroCopyBuf, - _: (), ) -> Result<(), AnyError> { if zero_copy.len() > 65536 { return Err( @@ -791,11 +790,7 @@ impl<'a> TryFrom> } #[op] -pub fn op_crypto_random_uuid( - state: &mut OpState, - _: (), - _: (), -) -> Result { +pub fn op_crypto_random_uuid(state: &mut OpState) -> Result { let maybe_seeded_rng = state.try_borrow_mut::(); let uuid = if let Some(seeded_rng) = maybe_seeded_rng { let mut bytes = [0u8; 16]; -- cgit v1.2.3