[clippy] fix: byte array -> byte str
This commit is contained in:
parent
e5952d5467
commit
a6d8eba632
@ -89,13 +89,13 @@ fn run() -> LogtimesResult {
|
|||||||
|
|
||||||
let end = trim_end(&linebuf);
|
let end = trim_end(&linebuf);
|
||||||
out.write_all(&linebuf[..end])?;
|
out.write_all(&linebuf[..end])?;
|
||||||
out.write_all(&[b'\r', b'\n'])?;
|
out.write_all(b"\r\n")?;
|
||||||
out.flush()?;
|
out.flush()?;
|
||||||
|
|
||||||
if let Some(ref mut f) = log_file {
|
if let Some(ref mut f) = log_file {
|
||||||
print_time(f)?;
|
print_time(f)?;
|
||||||
f.write_all(&linebuf[..end])?;
|
f.write_all(&linebuf[..end])?;
|
||||||
f.write_all(&[b'\n'])?;
|
f.write_all(b"\n")?;
|
||||||
f.flush()?;
|
f.flush()?;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user