Update crates/ide/src/rename.rs

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
This commit is contained in:
Anatol Ulrich 2021-11-03 15:44:32 +01:00 committed by GitHub
parent 9025f51118
commit 83927e08a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"),
}