mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fix some irregular indentation.
This commit is contained in:
parent
8efd70b01b
commit
91b4246e1b
5 changed files with 29 additions and 29 deletions
|
@ -540,18 +540,18 @@ impl<'a> TreeWalkerHelpers for JSRef<'a, TreeWalker> {
|
|||
impl<'a> Iterator for JSRef<'a, TreeWalker> {
|
||||
type Item = JSRef<'a, Node>;
|
||||
|
||||
fn next(&mut self) -> Option<JSRef<'a, Node>> {
|
||||
match self.next_node() {
|
||||
Ok(node) => node.map(|n| n.root().get_unsound_ref_forever()),
|
||||
Err(_) =>
|
||||
// The Err path happens only when a JavaScript
|
||||
// NodeFilter throws an exception. This iterator
|
||||
// is meant for internal use from Rust code, which
|
||||
// will probably be using a native Rust filter,
|
||||
// which cannot produce an Err result.
|
||||
unreachable!()
|
||||
fn next(&mut self) -> Option<JSRef<'a, Node>> {
|
||||
match self.next_node() {
|
||||
Ok(node) => node.map(|n| n.root().get_unsound_ref_forever()),
|
||||
Err(_) =>
|
||||
// The Err path happens only when a JavaScript
|
||||
// NodeFilter throws an exception. This iterator
|
||||
// is meant for internal use from Rust code, which
|
||||
// will probably be using a native Rust filter,
|
||||
// which cannot produce an Err result.
|
||||
unreachable!()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[jstraceable]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue