assume valid identifier

This commit is contained in:
Anatol Ulrich 2021-10-26 19:33:50 +02:00
parent ee1d6cffbf
commit 53be26df50

View file

@ -81,12 +81,8 @@ pub(crate) fn goto_type_definition(
} }
}); });
}); });
if res.is_empty() {
None
} else {
Some(RangeInfo::new(range, res)) Some(RangeInfo::new(range, res))
} }
}
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {