Update crates/ide/src/rename.rs
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
This commit is contained in:
parent
9025f51118
commit
83927e08a8
@ -57,7 +57,6 @@ pub(crate) fn prepare_rename(
|
||||
|
||||
match res {
|
||||
// ensure at least one definition was found
|
||||
// TODO this duplicates work done at the end of `find_definitions`
|
||||
Some(res) => res.map(|range| RangeInfo::new(range, ())),
|
||||
None => bail!("No references found at position"),
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user