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 /ext/crypto | |
| parent | 9f494dc405afc4b1b29fa4c813bd5751f26aaa36 (diff) | |
feat(ops): custom arity (#13949)
Also cleanup & drop ignored wildcard op-args
Diffstat (limited to 'ext/crypto')
| -rw-r--r-- | ext/crypto/generate_key.rs | 1 | ||||
| -rw-r--r-- | ext/crypto/lib.rs | 7 |
2 files changed, 1 insertions, 7 deletions
diff --git a/ext/crypto/generate_key.rs b/ext/crypto/generate_key.rs index 9fe1b62f4..22f0913ec 100644 --- a/ext/crypto/generate_key.rs +++ b/ext/crypto/generate_key.rs @@ -46,7 +46,6 @@ pub enum GenerateKeyOptions { pub async fn op_crypto_generate_key( _state: Rc<RefCell<OpState>>, opts: GenerateKeyOptions, - _: (), ) -> Result<ZeroCopyBuf, AnyError> { let fun = || match opts { GenerateKeyOptions::Rsa { 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<u64>) -> 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<rsa::pkcs8::der::asn1::Any<'a>> } #[op] -pub fn op_crypto_random_uuid( - state: &mut OpState, - _: (), - _: (), -) -> Result<String, AnyError> { +pub fn op_crypto_random_uuid(state: &mut OpState) -> Result<String, AnyError> { let maybe_seeded_rng = state.try_borrow_mut::<StdRng>(); let uuid = if let Some(seeded_rng) = maybe_seeded_rng { let mut bytes = [0u8; 16]; |
