mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 21:43:37 +00:00
assume valid identifier
This commit is contained in:
parent
ee1d6cffbf
commit
53be26df50
1 changed files with 1 additions and 5 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue