mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Support trait aliases in IDE where type support isn't needed
This commit is contained in:
parent
29c957f973
commit
f8eac19b33
7 changed files with 95 additions and 29 deletions
|
@ -32,7 +32,7 @@ impl Markup {
|
|||
pub fn as_str(&self) -> &str {
|
||||
self.text.as_str()
|
||||
}
|
||||
pub fn fenced_block(contents: &impl fmt::Display) -> Markup {
|
||||
pub fn fenced_block(contents: impl fmt::Display) -> Markup {
|
||||
format!("```rust\n{contents}\n```").into()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue