clippy: println_empty_string & non_minimal_cfg (#36614)
- **clippy: Fix println-empty-string** - **clippy: non-minimal-cfg** Related to #36577 Release Notes: - N/A
This commit is contained in:
parent
b6722ca3c8
commit
74ce543d8b
5 changed files with 3 additions and 16 deletions
|
@ -161,7 +161,7 @@ impl UserMessage {
|
|||
}
|
||||
UserMessageContent::Mention { uri, content } => {
|
||||
if !content.is_empty() {
|
||||
let _ = write!(&mut markdown, "{}\n\n{}\n", uri.as_link(), content);
|
||||
let _ = writeln!(&mut markdown, "{}\n\n{}", uri.as_link(), content);
|
||||
} else {
|
||||
let _ = writeln!(&mut markdown, "{}", uri.as_link());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue