summaryrefslogtreecommitdiff
path: root/ext/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'ext/crypto')
-rw-r--r--ext/crypto/generate_key.rs1
-rw-r--r--ext/crypto/lib.rs7
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];