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
parent c97fa33aec
commit 4b7836d572
No known key found for this signature in database
GPG key ID: EED98D11B85A2819
3 changed files with 3 additions and 3 deletions

2
Cargo.lock generated
View file

@ -332,7 +332,7 @@ checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
[[package]]
name = "microfetch"
version = "0.4.3"
version = "0.4.4"
dependencies = [
"color-eyre",
"criterion",

View file

@ -1,6 +1,6 @@
[package]
name = "microfetch"
version = "0.4.3"
version = "0.4.4"
edition = "2021"
[lib]

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");
}