mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Streamline
This commit is contained in:
parent
3a26752c66
commit
e7c47eb7f5
3 changed files with 36 additions and 50 deletions
|
@ -32,4 +32,7 @@ impl Markup {
|
|||
pub fn as_str(&self) -> &str {
|
||||
self.text.as_str()
|
||||
}
|
||||
pub fn fenced_block(contents: &impl fmt::Display) -> Markup {
|
||||
format!("```rust\n{}\n```", contents).into()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue