mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-26 14:43:24 +00:00
changed 'descendants()' to 'children()'
This commit is contained in:
parent
f67ee69777
commit
72792f6bc5
@ -236,10 +236,7 @@ impl ast::LetStmt {
|
||||
}
|
||||
|
||||
pub fn eq_token(&self) -> Option<SyntaxToken> {
|
||||
self.syntax()
|
||||
.descendants_with_tokens()
|
||||
.find(|t| t.kind() == EQ)
|
||||
.and_then(|it| it.into_token())
|
||||
self.syntax().children_with_tokens().find(|t| t.kind() == EQ).and_then(|it| it.into_token())
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user