mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Fix standard library doclinks not going to the correct page
This commit is contained in:
parent
5051717856
commit
8ed86fc25d
3 changed files with 103 additions and 55 deletions
|
@ -120,6 +120,15 @@ pub struct CrateDisplayName {
|
|||
canonical_name: String,
|
||||
}
|
||||
|
||||
impl CrateDisplayName {
|
||||
pub fn canonical_name(&self) -> &str {
|
||||
&self.canonical_name
|
||||
}
|
||||
pub fn crate_name(&self) -> &CrateName {
|
||||
&self.crate_name
|
||||
}
|
||||
}
|
||||
|
||||
impl From<CrateName> for CrateDisplayName {
|
||||
fn from(crate_name: CrateName) -> CrateDisplayName {
|
||||
let canonical_name = crate_name.to_string();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue