diff options
Diffstat (limited to 'components/script/dom/treewalker.rs')
-rw-r--r-- | components/script/dom/treewalker.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/treewalker.rs b/components/script/dom/treewalker.rs index 252d82acbe9..8cae9d08269 100644 --- a/components/script/dom/treewalker.rs +++ b/components/script/dom/treewalker.rs @@ -256,9 +256,9 @@ impl<'a> PrivateTreeWalkerHelpers<'a> for JSRef<'a, TreeWalker> { // "5. If result is FILTER_REJECT or sibling is null, // then set sibling to node's next sibling if type is next, // and node's previous sibling if type is previous." - match (result, sibling_op) { + match (result, &sibling_op) { (Ok(NodeFilterConstants::FILTER_REJECT), _) - | (_, None) => sibling_op = next_sibling(node), + | (_, &None) => sibling_op = next_sibling(node), _ => {} } } |