diff options
author | metamuffin <metamuffin@disroot.org> | 2025-05-27 18:40:53 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-05-27 18:40:53 +0200 |
commit | 2eed0cc2a319bfab52b88abc39f2a4f237e4d0e0 (patch) | |
tree | 557d8990914a7bc7c8bf59dc68185d44e54d262d /src/modules/log.rs | |
parent | 520f93f4fb6959d602b9e45d6bb47a06dcf60219 (diff) | |
download | gnix-2eed0cc2a319bfab52b88abc39f2a4f237e4d0e0.tar gnix-2eed0cc2a319bfab52b88abc39f2a4f237e4d0e0.tar.bz2 gnix-2eed0cc2a319bfab52b88abc39f2a4f237e4d0e0.tar.zst |
clippy
Diffstat (limited to 'src/modules/log.rs')
-rw-r--r-- | src/modules/log.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/log.rs b/src/modules/log.rs index 3705657..9efa3ad 100644 --- a/src/modules/log.rs +++ b/src/modules/log.rs @@ -135,7 +135,7 @@ impl Node for Log { } .unwrap(); } - write!(out, "\n").unwrap(); + writeln!(out).unwrap(); out } Format::Json => { @@ -210,7 +210,7 @@ impl Node for Log { let mut out = Cursor::new(Vec::new()); serde_json::to_writer(&mut out, &entry).unwrap(); - write!(out, "\n").unwrap(); + writeln!(out).unwrap(); String::from_utf8_lossy_owned(out.into_inner()) } }; |