diff options
| author | Anatol Ulrich <anatol.ulrich@ferrous-systems.com> | 2021-10-26 19:33:50 +0200 |
|---|---|---|
| committer | Anatol Ulrich <anatol.ulrich@ferrous-systems.com> | 2021-10-26 19:33:50 +0200 |
| commit | 53be26df5063fec8f626bc82747138973ec51633 (patch) | |
| tree | 70e37e11629baddb99a9fbcd287a581a9e6cb156 | |
| parent | ee1d6cffbfbecc99a70be77fe697af817ed6cfac (diff) | |
| download | rust-53be26df5063fec8f626bc82747138973ec51633.tar.gz rust-53be26df5063fec8f626bc82747138973ec51633.zip | |
assume valid identifier
| -rw-r--r-- | crates/ide/src/goto_type_definition.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/crates/ide/src/goto_type_definition.rs b/crates/ide/src/goto_type_definition.rs index 2976dec3794..693098e3f29 100644 --- a/crates/ide/src/goto_type_definition.rs +++ b/crates/ide/src/goto_type_definition.rs @@ -81,11 +81,7 @@ pub(crate) fn goto_type_definition( } }); }); - if res.is_empty() { - None - } else { - Some(RangeInfo::new(range, res)) - } + Some(RangeInfo::new(range, res)) } #[cfg(test)] |
