From 6015a66cae81456d0de14c9bcff73c990c27dcb1 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Sun, 17 Jan 2021 21:00:55 +0100 Subject: Make rename reference search use ide_db::search directly --- crates/ide/src/diagnostics/fixes.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ide/src/diagnostics') diff --git a/crates/ide/src/diagnostics/fixes.rs b/crates/ide/src/diagnostics/fixes.rs index e4335119b..4b4afd40c 100644 --- a/crates/ide/src/diagnostics/fixes.rs +++ b/crates/ide/src/diagnostics/fixes.rs @@ -140,7 +140,7 @@ impl DiagnosticWithFix for IncorrectCase { rename_with_semantics(sema, file_position, &self.suggested_text).ok()?; let label = format!("Rename to {}", self.suggested_text); - Some(Fix::new(&label, rename_changes.info, rename_changes.range)) + Some(Fix::new(&label, rename_changes.info, frange.range)) } } -- cgit v1.2.3