diff --git a/components/script/dom/domstringmap.rs b/components/script/dom/domstringmap.rs index 28998e0ba01..1a6b7b6f36e 100644 --- a/components/script/dom/domstringmap.rs +++ b/components/script/dom/domstringmap.rs @@ -51,10 +51,6 @@ impl DOMStringMapMethods for DOMStringMap { // https://html.spec.whatwg.org/multipage/#the-domstringmap-interface:supported-property-names fn SupportedPropertyNames(&self) -> Vec { - self.element - .supported_prop_names_custom_attr() - .iter() - .cloned() - .collect() + self.element.supported_prop_names_custom_attr().to_vec() } }