diff options
author | Pyfisch <pyfisch@gmail.com> | 2018-11-06 13:01:35 +0100 |
---|---|---|
committer | Pyfisch <pyfisch@gmail.com> | 2018-11-06 22:30:31 +0100 |
commit | cb07debcb6f3d3561177ce536c320986720791b7 (patch) | |
tree | ccac4d5a48b3112230f3fc2e873753dd7263e9fb /components/script/dom/node.rs | |
parent | bf47f90da667e95eaffc8fee36ca8a88e72e276c (diff) | |
download | servo-cb07debcb6f3d3561177ce536c320986720791b7.tar.gz servo-cb07debcb6f3d3561177ce536c320986720791b7.zip |
Format remaining files
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r-- | components/script/dom/node.rs | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index 3fbc1b81c0b..4b2f3211ae0 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -384,7 +384,8 @@ impl<'a> Iterator for QuerySelectorIterator { } } None - }).next() + }) + .next() } } @@ -1238,9 +1239,7 @@ impl LayoutNodeHelpers for LayoutDom<Node> { #[allow(unsafe_code)] fn image_data(&self) -> Option<(Option<StdArc<Image>>, Option<ImageMetadata>)> { - unsafe { - self.downcast::<HTMLImageElement>().map(|e| e.image_data()) - } + unsafe { self.downcast::<HTMLImageElement>().map(|e| e.image_data()) } } #[allow(unsafe_code)] @@ -2837,10 +2836,12 @@ pub struct UnbindContext<'a> { impl<'a> UnbindContext<'a> { /// Create a new `UnbindContext` value. - fn new(parent: &'a Node, - prev_sibling: Option<&'a Node>, - next_sibling: Option<&'a Node>, - cached_index: Option<u32>) -> Self { + fn new( + parent: &'a Node, + prev_sibling: Option<&'a Node>, + next_sibling: Option<&'a Node>, + cached_index: Option<u32>, + ) -> Self { UnbindContext { index: Cell::new(cached_index), parent: parent, |