From 53be26df5063fec8f626bc82747138973ec51633 Mon Sep 17 00:00:00 2001 From: Anatol Ulrich Date: Tue, 26 Oct 2021 19:33:50 +0200 Subject: [PATCH] assume valid identifier --- crates/ide/src/goto_type_definition.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/crates/ide/src/goto_type_definition.rs b/crates/ide/src/goto_type_definition.rs index 2976dec379..693098e3f2 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)]