From a6d8eba632ca65fd509e80344d18ef54f1d3eb4a Mon Sep 17 00:00:00 2001 From: Paul Schulze Date: Mon, 9 Sep 2024 11:19:02 +0200 Subject: [PATCH] [clippy] fix: byte array -> byte str --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index d412ea6..4fabb6c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -89,13 +89,13 @@ fn run() -> LogtimesResult { let end = trim_end(&linebuf); out.write_all(&linebuf[..end])?; - out.write_all(&[b'\r', b'\n'])?; + out.write_all(b"\r\n")?; out.flush()?; if let Some(ref mut f) = log_file { print_time(f)?; f.write_all(&linebuf[..end])?; - f.write_all(&[b'\n'])?; + f.write_all(b"\n")?; f.flush()?; };