mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-30 11:37:31 +00:00
Improve hover module path rendering
This commit is contained in:
parent
1b52a6680f
commit
3bae1f0a1b
5 changed files with 133 additions and 23 deletions
|
|
@ -3916,6 +3916,10 @@ impl ToolModule {
|
|||
db.crate_def_map(self.krate).registered_tools()[self.idx as usize].clone(),
|
||||
)
|
||||
}
|
||||
|
||||
pub fn krate(&self) -> Crate {
|
||||
Crate { id: self.krate }
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue