Skip to content

Commit 72792f6

Browse files
author
TomasKralCZ
committed
changed 'descendants()' to 'children()'
1 parent f67ee69 commit 72792f6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

crates/ra_syntax/src/ast/extensions.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,7 @@ impl ast::LetStmt {
236236
}
237237

238238
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())
239+
self.syntax().children_with_tokens().find(|t| t.kind() == EQ).and_then(|it| it.into_token())
243240
}
244241
}
245242

0 commit comments

Comments
 (0)