about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAnatol Ulrich <anatol.ulrich@ferrous-systems.com>2021-10-26 19:33:50 +0200
committerAnatol Ulrich <anatol.ulrich@ferrous-systems.com>2021-10-26 19:33:50 +0200
commit53be26df5063fec8f626bc82747138973ec51633 (patch)
tree70e37e11629baddb99a9fbcd287a581a9e6cb156
parentee1d6cffbfbecc99a70be77fe697af817ed6cfac (diff)
downloadrust-53be26df5063fec8f626bc82747138973ec51633.tar.gz
rust-53be26df5063fec8f626bc82747138973ec51633.zip
assume valid identifier
-rw-r--r--crates/ide/src/goto_type_definition.rs6
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)]