system report: fix warning about checking result

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2023-11-24 12:02:27 +01:00
parent 737c5af2ee
commit 164f96a5a6

View File

@ -162,7 +162,7 @@ fn get_command_output(exe: &str, args: &Vec<&str>) -> String {
.trim_end()
.to_string();
if !stderr.is_empty() {
writeln!(out, "\n```\nSTDERR:\n```\n{stderr}");
let _ = writeln!(out, "\n```\nSTDERR:\n```\n{stderr}");
}
out
}