From a82c679c97af1e0aabe9eb375573d5d23fc75391 Mon Sep 17 00:00:00 2001 From: kjeremy Date: Mon, 13 Jan 2020 11:27:06 -0500 Subject: Some clippy lints --- crates/ra_ide/src/completion/complete_path.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_ide/src/completion') diff --git a/crates/ra_ide/src/completion/complete_path.rs b/crates/ra_ide/src/completion/complete_path.rs index cc1f7c830..0dce9dc2d 100644 --- a/crates/ra_ide/src/completion/complete_path.rs +++ b/crates/ra_ide/src/completion/complete_path.rs @@ -26,7 +26,7 @@ pub(super) fn complete_path(acc: &mut Completions, ctx: &CompletionContext) { } if let ScopeDef::Unknown = def { if let Some(name_ref) = ctx.name_ref_syntax.as_ref() { - if &name_ref.syntax().text() == name.to_string().as_str() { + if name_ref.syntax().text() == name.to_string().as_str() { // for `use self::foo<|>`, don't suggest `foo` as a completion tested_by!(dont_complete_current_use); continue; -- cgit v1.2.3