aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/treewalker.rs
diff options
context:
space:
mode:
authorbors-servo <servo-ops@mozilla.com>2021-11-01 10:19:52 -0400
committerGitHub <noreply@github.com>2021-11-01 10:19:52 -0400
commit9693111c9744407730d7fc971a33800a831d575e (patch)
tree1cab74ab2e5930190ad0febc9cca870cc986f0e5 /components/script/dom/treewalker.rs
parent6734eab188b5264b8d0b11686f332d88205e8d1f (diff)
parent01681e79c47ebfc45eaca18b79846e4fbe16a959 (diff)
downloadservo-9693111c9744407730d7fc971a33800a831d575e.tar.gz
servo-9693111c9744407730d7fc971a33800a831d575e.zip
Auto merge of #28591 - servo:jdm-patch-51, r=jdm
Update rustc to latest nightly. None
Diffstat (limited to 'components/script/dom/treewalker.rs')
-rw-r--r--components/script/dom/treewalker.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/treewalker.rs b/components/script/dom/treewalker.rs
index 86aa97466a7..2cd8de9fdb3 100644
--- a/components/script/dom/treewalker.rs
+++ b/components/script/dom/treewalker.rs
@@ -187,7 +187,7 @@ impl TreeWalkerMethods for TreeWalker {
// outside of the tree rooted at the original root.
{
return Ok(None);
- }
+ },
Some(n) => node = n,
}
// "5. Filter node and if the return value is FILTER_ACCEPT, then
@@ -319,7 +319,7 @@ impl TreeWalker {
if self.is_root_node(&parent) || self.is_current_node(&parent) =>
{
return Ok(None);
- }
+ },
// "5. Otherwise, set node to parent."
Some(parent) => node = parent,
}
@@ -467,7 +467,7 @@ impl<'a> Iterator for &'a TreeWalker {
// which cannot produce an Err result.
{
unreachable!()
- }
+ },
}
}
}