From c37a345dc9f4dda6ea29c42f96f6c7201c42cbac Mon Sep 17 00:00:00 2001 From: chansuke Date: Tue, 18 Sep 2018 23:24:15 +0900 Subject: Format script component --- components/script/dom/domstringmap.rs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'components/script/dom/domstringmap.rs') diff --git a/components/script/dom/domstringmap.rs b/components/script/dom/domstringmap.rs index c64375e0bdb..514781c9a1d 100644 --- a/components/script/dom/domstringmap.rs +++ b/components/script/dom/domstringmap.rs @@ -28,9 +28,11 @@ impl DOMStringMap { pub fn new(element: &HTMLElement) -> DomRoot { let window = window_from_node(element); - reflect_dom_object(Box::new(DOMStringMap::new_inherited(element)), - &*window, - DOMStringMapBinding::Wrap) + reflect_dom_object( + Box::new(DOMStringMap::new_inherited(element)), + &*window, + DOMStringMapBinding::Wrap, + ) } } @@ -53,6 +55,10 @@ 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() + .iter() + .cloned() + .collect() } } -- cgit v1.2.3