mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
clippy: Fix warnings in components/script/dom (#33771)
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
This commit is contained in:
parent
67edd5683b
commit
9a8e7f4867
1 changed files with 2 additions and 2 deletions
|
@ -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),
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue