From 2eed0cc2a319bfab52b88abc39f2a4f237e4d0e0 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 27 May 2025 18:40:53 +0200 Subject: clippy --- src/modules/log.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/log.rs') 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()) } }; -- cgit v1.2.3-70-g09d2