Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide/src/markup.rs')
| -rw-r--r-- | crates/ide/src/markup.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide/src/markup.rs b/crates/ide/src/markup.rs index de9fef61a7..411eb695fb 100644 --- a/crates/ide/src/markup.rs +++ b/crates/ide/src/markup.rs @@ -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() } } |