mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Update crates/ide/src/rename.rs
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
This commit is contained in:
parent
9025f51118
commit
83927e08a8
1 changed files with 0 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue