summaryrefslogtreecommitdiffstats
path: root/src/endpoint
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@atos.net>2021-01-19 13:53:15 +0100
committerMatthias Beyer <matthias.beyer@atos.net>2021-01-19 13:53:15 +0100
commit72591aaba2bda63a75947ca1991ad12a0a0bb05d (patch)
tree01546d87c4f411cf2c767990f10e990773044091 /src/endpoint
parent64c01b98b9bf2eea7a270fb5016a3be995af483c (diff)
Fix clippy: calling `as_bytes()` on a string literal
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
Diffstat (limited to 'src/endpoint')
-rw-r--r--src/endpoint/scheduler.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/endpoint/scheduler.rs b/src/endpoint/scheduler.rs
index 6404c6f..3326a0a 100644
--- a/src/endpoint/scheduler.rs
+++ b/src/endpoint/scheduler.rs
@@ -331,7 +331,7 @@ impl<'a> LogReceiver<'a> {
if let Some(lf) = logfile.as_mut() {
lf.write_all(logitem.display()?.to_string().as_bytes())
.await?;
- lf.write_all("\n".as_bytes()).await?;
+ lf.write_all(b"\n").await?;
}
match logitem {