We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5043c9c commit 910ac5aCopy full SHA for 910ac5a
crates/ra_ide/src/display.rs
@@ -79,14 +79,14 @@ pub(crate) fn rust_code_markup_with_doc(
79
doc: Option<&str>,
80
mod_path: Option<&str>,
81
) -> String {
82
- let mut buf = "".to_owned();
+ let mut buf = String::new();
83
84
if let Some(mod_path) = mod_path {
85
if !mod_path.is_empty() {
86
- format_to!(buf, "{}\n___\n", mod_path);
+ format_to!(buf, "{}\n___\n\n", mod_path);
87
}
88
89
- format_to!(buf, "```rust\n\n{}\n```", code);
+ format_to!(buf, "```rust\n{}\n```", code);
90
91
if let Some(doc) = doc {
92
format_to!(buf, "\n\n{}", doc);
0 commit comments