aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/documentorshadowroot.rs
diff options
context:
space:
mode:
authorteymour-aldridge <teymour.aldridge@icloud.com>2021-02-05 14:46:09 +0000
committerteymour-aldridge <teymour.aldridge@icloud.com>2021-02-05 14:46:09 +0000
commit217147b2e41b9e15e04fb2935882a478c616bd82 (patch)
treede3eba62a91b5e971920497ef4e00fb6b1c8a324 /components/script/dom/documentorshadowroot.rs
parentff767b13a93c0ca50fbe7e029ef57f0fee960a8d (diff)
downloadservo-217147b2e41b9e15e04fb2935882a478c616bd82.tar.gz
servo-217147b2e41b9e15e04fb2935882a478c616bd82.zip
fmt
Diffstat (limited to 'components/script/dom/documentorshadowroot.rs')
-rw-r--r--components/script/dom/documentorshadowroot.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/components/script/dom/documentorshadowroot.rs b/components/script/dom/documentorshadowroot.rs
index 87322db2574..43d345e5e01 100644
--- a/components/script/dom/documentorshadowroot.rs
+++ b/components/script/dom/documentorshadowroot.rs
@@ -170,9 +170,7 @@ impl DocumentOrShadowRoot {
let mut elements: Vec<DomRoot<Element>> = nodes
.iter()
.flat_map(|&untrusted_node_address| {
- let node = unsafe {
- node::from_untrusted_node_address(untrusted_node_address)
- };
+ let node = unsafe { node::from_untrusted_node_address(untrusted_node_address) };
DomRoot::downcast::<Element>(node)
})
.collect();