From 722aa86c895b42798d60bcada41b0175dbafba52 Mon Sep 17 00:00:00 2001 From: David Zbarsky Date: Mon, 2 Nov 2015 22:26:50 -0800 Subject: Get rid of a bunch of explicit derefs --- components/script/dom/range.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'components/script/dom/range.rs') diff --git a/components/script/dom/range.rs b/components/script/dom/range.rs index fbef27341ec..1675036e80b 100644 --- a/components/script/dom/range.rs +++ b/components/script/dom/range.rs @@ -810,10 +810,10 @@ fn bp_position(a_node: &Node, a_offset: u32, // Step 3-1, 3-2. let mut b_ancestors = b_node.inclusive_ancestors(); let child = b_ancestors.find(|child| { - child.r().GetParentNode().unwrap().r() == a_node + child.GetParentNode().unwrap().r() == a_node }).unwrap(); // Step 3-3. - if child.r().index() < a_offset { + if child.index() < a_offset { Some(Ordering::Greater) } else { // Step 4. -- cgit v1.2.3