aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/subtlecrypto.rs
diff options
context:
space:
mode:
authortanishka <109246904+taniishkaaa@users.noreply.github.com>2024-10-10 03:14:01 +0530
committerGitHub <noreply@github.com>2024-10-09 21:44:01 +0000
commit9a8e7f4867c2e6c54dec9cba3b3766f52ba8117f (patch)
treeb06639d0ce743fa4cd30a2594b0e58564a8e7a18 /components/script/dom/subtlecrypto.rs
parent67edd5683be8ece49db2049ffd09f9b508b73dd9 (diff)
downloadservo-9a8e7f4867c2e6c54dec9cba3b3766f52ba8117f.tar.gz
servo-9a8e7f4867c2e6c54dec9cba3b3766f52ba8117f.zip
clippy: Fix warnings in components/script/dom (#33771)
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
Diffstat (limited to 'components/script/dom/subtlecrypto.rs')
-rw-r--r--components/script/dom/subtlecrypto.rs4
1 files 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),
}
},
}