From f67ee69777e53ca1121e6aa461ecf84a3c01e139 Mon Sep 17 00:00:00 2001 From: TomasKralCZ Date: Sun, 19 Jan 2020 18:55:56 +0100 Subject: added eq_token() method to LetStmt --- crates/ra_assists/src/assists/add_explicit_type.rs | 3 +-- crates/ra_syntax/src/ast/extensions.rs | 7 +++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/crates/ra_assists/src/assists/add_explicit_type.rs b/crates/ra_assists/src/assists/add_explicit_type.rs index 713abf910..38a351a54 100644 --- a/crates/ra_assists/src/assists/add_explicit_type.rs +++ b/crates/ra_assists/src/assists/add_explicit_type.rs @@ -1,7 +1,6 @@ use hir::{db::HirDatabase, HirDisplay}; use ra_syntax::{ ast::{self, AstNode, LetStmt, NameOwner}, - SyntaxKind::EQ, TextRange, T, }; @@ -37,7 +36,7 @@ pub(crate) fn add_explicit_type(ctx: AssistCtx) -> Option