diff --git a/crates/ra_syntax/src/ast/extensions.rs b/crates/ra_syntax/src/ast/extensions.rs index b8043b726bd..cb0aee42259 100644 --- a/crates/ra_syntax/src/ast/extensions.rs +++ b/crates/ra_syntax/src/ast/extensions.rs @@ -236,10 +236,7 @@ pub fn has_semi(&self) -> bool { } 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()) } }