mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
changed 'descendants()' to 'children()'
This commit is contained in:
parent
f67ee69777
commit
72792f6bc5
1 changed files with 1 additions and 4 deletions
|
@ -236,10 +236,7 @@ impl ast::LetStmt {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn eq_token(&self) -> Option<SyntaxToken> {
|
pub fn eq_token(&self) -> Option<SyntaxToken> {
|
||||||
self.syntax()
|
self.syntax().children_with_tokens().find(|t| t.kind() == EQ).and_then(|it| it.into_token())
|
||||||
.descendants_with_tokens()
|
|
||||||
.find(|t| t.kind() == EQ)
|
|
||||||
.and_then(|it| it.into_token())
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue