From 94f7b63522cb7464a853c74a8431587db6434b12 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 14 Jun 2021 19:15:53 +0300 Subject: minor: less ambiguous name --- crates/ide/src/rename.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crates/ide') diff --git a/crates/ide/src/rename.rs b/crates/ide/src/rename.rs index 41689a939..8096dfa0e 100644 --- a/crates/ide/src/rename.rs +++ b/crates/ide/src/rename.rs @@ -32,8 +32,9 @@ pub(crate) fn prepare_rename( let syntax = source_file.syntax(); let def = find_definition(&sema, syntax, position)?; - let frange = - def.rename_range(&sema).ok_or_else(|| format_err!("No references found at position"))?; + let frange = def + .range_for_rename(&sema) + .ok_or_else(|| format_err!("No references found at position"))?; Ok(RangeInfo::new(frange.range, ())) } -- cgit v1.2.3