From 9a8e7f4867c2e6c54dec9cba3b3766f52ba8117f Mon Sep 17 00:00:00 2001 From: tanishka <109246904+taniishkaaa@users.noreply.github.com> Date: Thu, 10 Oct 2024 03:14:01 +0530 Subject: [PATCH] clippy: Fix warnings in components/script/dom (#33771) Signed-off-by: taniishkaaa --- components/script/dom/subtlecrypto.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/script/dom/subtlecrypto.rs b/components/script/dom/subtlecrypto.rs index 0773af4a147..c2ed273cd4a 100644 --- a/components/script/dom/subtlecrypto.rs +++ b/components/script/dom/subtlecrypto.rs @@ -182,7 +182,7 @@ impl SubtleCryptoMethods for SubtleCrypto { return; } let exported_key = match alg_name.as_str() { - ALG_AES_CBC => subtle.export_key_aes_cbc(format, &*key), + ALG_AES_CBC => subtle.export_key_aes_cbc(format, &key), _ => Err(Error::NotSupported), }; match exported_key { @@ -267,7 +267,7 @@ fn normalize_algorithm( }; Ok(NormalizedAlgorithm::AesKeyGenParams(params.into())) }, - _ => return Err(Error::NotSupported), + _ => Err(Error::NotSupported), } }, }