We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f67ee69 commit 72792f6Copy full SHA for 72792f6
crates/ra_syntax/src/ast/extensions.rs
@@ -236,10 +236,7 @@ impl ast::LetStmt {
236
}
237
238
pub fn eq_token(&self) -> Option<SyntaxToken> {
239
- self.syntax()
240
- .descendants_with_tokens()
241
- .find(|t| t.kind() == EQ)
242
- .and_then(|it| it.into_token())
+ self.syntax().children_with_tokens().find(|t| t.kind() == EQ).and_then(|it| it.into_token())
243
244
245
0 commit comments