mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Get rid of a bunch of explicit derefs
This commit is contained in:
parent
ca56ebbb09
commit
722aa86c89
49 changed files with 340 additions and 360 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue