diff options
author | Corey Farwell <coreyf@rwell.org> | 2015-10-30 18:41:22 -0400 |
---|---|---|
committer | Corey Farwell <coreyf@rwell.org> | 2015-10-30 18:41:22 -0400 |
commit | 16fa9cabc92e8c69c1161a20b58d0e32c7ab40c2 (patch) | |
tree | 434fe52411427d9dd609e922ea1d865ef95034af /components/script/dom/range.rs | |
parent | 1dfc0481efd4687658ab34e68c883caeadd8b20f (diff) | |
download | servo-16fa9cabc92e8c69c1161a20b58d0e32c7ab40c2.tar.gz servo-16fa9cabc92e8c69c1161a20b58d0e32c7ab40c2.zip |
Fix some rust-clippy violations
Diffstat (limited to 'components/script/dom/range.rs')
-rw-r--r-- | components/script/dom/range.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/range.rs b/components/script/dom/range.rs index 2d89530ef1b..974255e8741 100644 --- a/components/script/dom/range.rs +++ b/components/script/dom/range.rs @@ -809,7 +809,7 @@ fn bp_position(a_node: &Node, a_offset: u32, } else if position & NodeConstants::DOCUMENT_POSITION_CONTAINS != 0 { // Step 3-1, 3-2. let mut b_ancestors = b_node.inclusive_ancestors(); - let ref child = b_ancestors.find(|child| { + let child = b_ancestors.find(|child| { child.r().GetParentNode().unwrap().r() == a_node }).unwrap(); // Step 3-3. |