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:
Piotr Osiewicz 2025-08-20 20:45:40 +02:00 committed by GitHub
parent b6722ca3c8
commit 74ce543d8b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 3 additions and 16 deletions

View file

@ -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());
}