aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/diagnostics
diff options
context:
space:
mode:
authorLukas Wirth <[email protected]>2021-01-17 20:00:55 +0000
committerLukas Wirth <[email protected]>2021-01-18 17:57:59 +0000
commit6015a66cae81456d0de14c9bcff73c990c27dcb1 (patch)
treeba89c68ec2f88c8834766d635c4ba3827ca7ef2f /crates/ide/src/diagnostics
parent6105dbfc2ee811f23255e74c45450c50cc155e85 (diff)
Make rename reference search use ide_db::search directly
Diffstat (limited to 'crates/ide/src/diagnostics')
-rw-r--r--crates/ide/src/diagnostics/fixes.rs2
1 files changed, 1 insertions, 1 deletions
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 {
140 rename_with_semantics(sema, file_position, &self.suggested_text).ok()?; 140 rename_with_semantics(sema, file_position, &self.suggested_text).ok()?;
141 141
142 let label = format!("Rename to {}", self.suggested_text); 142 let label = format!("Rename to {}", self.suggested_text);
143 Some(Fix::new(&label, rename_changes.info, rename_changes.range)) 143 Some(Fix::new(&label, rename_changes.info, frange.range))
144 } 144 }
145} 145}
146 146