aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/ast
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax/src/ast')
-rw-r--r--crates/ra_syntax/src/ast/extensions.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/crates/ra_syntax/src/ast/extensions.rs b/crates/ra_syntax/src/ast/extensions.rs
index b8043b726..cb0aee422 100644
--- a/crates/ra_syntax/src/ast/extensions.rs
+++ b/crates/ra_syntax/src/ast/extensions.rs
@@ -236,10 +236,7 @@ impl ast::LetStmt {
236 } 236 }
237 237
238 pub fn eq_token(&self) -> Option<SyntaxToken> { 238 pub fn eq_token(&self) -> Option<SyntaxToken> {
239 self.syntax() 239 self.syntax().children_with_tokens().find(|t| t.kind() == EQ).and_then(|it| it.into_token())
240 .descendants_with_tokens()
241 .find(|t| t.kind() == EQ)
242 .and_then(|it| it.into_token())
243 } 240 }
244} 241}
245 242