append newline to write_all output

Fixes a small bug that resulted in terminal artifacts. My bad, gang.
This commit is contained in:
raf 2024-12-19 19:13:16 +03:00
commit 4b7836d572
No known key found for this signature in database
GPG key ID: EED98D11B85A2819
3 changed files with 3 additions and 3 deletions

View file

@ -84,6 +84,6 @@ fn print_system_info(fields: &Fields) {
std::io::stdout()
.lock()
.write_all(system_info.as_bytes())
.write_all(format!("{}\n", system_info).as_bytes())
.expect("Failed to write to stdout");
}