From 72792f6bc5cc3c81b53fa8e71304b0f7321f8e22 Mon Sep 17 00:00:00 2001 From: TomasKralCZ Date: Mon, 20 Jan 2020 10:08:36 +0100 Subject: changed 'descendants()' to 'children()' --- crates/ra_syntax/src/ast/extensions.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'crates') 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 { } pub fn eq_token(&self) -> Option { - 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()) } } -- cgit v1.2.3