Clippy: fix clone_on_copy in components\script\dom\cryptokey (#33730)

Signed-off-by: PS Adavize <siyakapromise@gmail.com>
This commit is contained in:
Adavize Promise 2024-10-08 17:04:57 +01:00 committed by GitHub
parent 609a6ef0f4
commit e8e51b1373
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -93,7 +93,7 @@ impl CryptoKey {
impl CryptoKeyMethods for CryptoKey {
/// <https://w3c.github.io/webcrypto/#cryptokey-interface-members>
fn Type(&self) -> KeyType {
self.key_type.clone()
self.key_type
}
/// <https://w3c.github.io/webcrypto/#cryptokey-interface-members>