clippy: Fix warnings in components/script/dom (#33771)

Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
This commit is contained in:
tanishka 2024-10-10 03:14:01 +05:30 committed by GitHub
parent 67edd5683b
commit 9a8e7f4867
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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),
}
},
}