mirror of
				https://github.com/rust-lang/rust-analyzer.git
				synced 2025-11-04 05:35:55 +00:00 
			
		
		
		
	Merge pull request #19139 from Wilfred/fix_assists_urls
manual: Fix URLs to rustdoc pages
This commit is contained in:
		
						commit
						dac8631d21
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -117,7 +117,7 @@ impl fmt::Display for Location {
 | 
				
			||||||
        let path = self.file.strip_prefix(project_root()).unwrap().display().to_string();
 | 
					        let path = self.file.strip_prefix(project_root()).unwrap().display().to_string();
 | 
				
			||||||
        let path = path.replace('\\', "/");
 | 
					        let path = path.replace('\\', "/");
 | 
				
			||||||
        let name = self.file.file_name().unwrap();
 | 
					        let name = self.file.file_name().unwrap();
 | 
				
			||||||
        write!(f, " [{}]({}#{}) ", name.to_str().unwrap(), path, self.line)
 | 
					        write!(f, " [{}](/{}#{}) ", name.to_str().unwrap(), path, self.line)
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue