diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-01-18 19:00:04 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-01-18 19:00:04 +0000 |
commit | 39282ec419046d84ad5972d5b02b1af9885e1282 (patch) | |
tree | 124f7d3ee6a18bf22b9ba5d1fc78b34c5f1b8b2b /crates/ide/src/diagnostics | |
parent | 08efb8a94360735f505699021eaa901464c76f4a (diff) | |
parent | 6015a66cae81456d0de14c9bcff73c990c27dcb1 (diff) |
Merge #7332
7332: Rename reference search uses ide_db::search directly r=matklad a=Veykril
https://github.com/rust-analyzer/rust-analyzer/pull/7251#discussion_r556644241
Co-authored-by: Lukas Wirth <[email protected]>
Diffstat (limited to 'crates/ide/src/diagnostics')
-rw-r--r-- | crates/ide/src/diagnostics/fixes.rs | 2 |
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 | ||