summaryrefslogtreecommitdiff
path: root/ext/crypto/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/crypto/lib.rs')
-rw-r--r--ext/crypto/lib.rs7
1 files changed, 1 insertions, 6 deletions
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];