Support trait aliases in IDE where type support isn't needed

This commit is contained in:
Ryo Yoshida 2023-03-04 00:24:08 +09:00
parent 29c957f973
commit f8eac19b33
No known key found for this signature in database
GPG key ID: E25698A930586171
7 changed files with 95 additions and 29 deletions

View file

@ -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()
}
}