mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
internal: Make TryToNav trait public
Currently there is no proper way to get a target FileRange for a given Definition.
This commit is contained in:
parent
d410d4a2ba
commit
231f730e87
2 changed files with 3 additions and 3 deletions
|
@ -76,7 +76,7 @@ pub(crate) trait ToNav {
|
|||
fn to_nav(&self, db: &RootDatabase) -> UpmappingResult<NavigationTarget>;
|
||||
}
|
||||
|
||||
pub(crate) trait TryToNav {
|
||||
pub trait TryToNav {
|
||||
fn try_to_nav(&self, db: &RootDatabase) -> Option<UpmappingResult<NavigationTarget>>;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue