aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/markup.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-07-09 09:19:37 +0100
committerAleksey Kladov <[email protected]>2020-07-09 09:19:37 +0100
commite7c47eb7f599da93f64c5a8d4f8e83ddd3fa1baa (patch)
treed52c87b544e9946d6e2d0ca307cf34d73dc1f635 /crates/ra_ide/src/markup.rs
parent3a26752c665111499b01c34b90aadd94afcd8b28 (diff)
Streamline
Diffstat (limited to 'crates/ra_ide/src/markup.rs')
-rw-r--r--crates/ra_ide/src/markup.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/ra_ide/src/markup.rs b/crates/ra_ide/src/markup.rs
index 212ca80b7..60c193c40 100644
--- a/crates/ra_ide/src/markup.rs
+++ b/crates/ra_ide/src/markup.rs
@@ -32,4 +32,7 @@ impl Markup {
32 pub fn as_str(&self) -> &str { 32 pub fn as_str(&self) -> &str {
33 self.text.as_str() 33 self.text.as_str()
34 } 34 }
35 pub fn fenced_block(contents: &impl fmt::Display) -> Markup {
36 format!("```rust\n{}\n```", contents).into()
37 }
35} 38}