clippy: Fix iter_cloned_collect warning (#32053)

This commit is contained in:
Oluwatobi Sofela 2024-04-11 22:46:48 +01:00 committed by GitHub
parent b3d9924396
commit 9db9dddb88
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -51,10 +51,6 @@ impl DOMStringMapMethods for DOMStringMap {
// https://html.spec.whatwg.org/multipage/#the-domstringmap-interface:supported-property-names
fn SupportedPropertyNames(&self) -> Vec<DOMString> {
self.element
.supported_prop_names_custom_attr()
.iter()
.cloned()
.collect()
self.element.supported_prop_names_custom_attr().to_vec()
}
}