code cleanups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht
2020-10-14 19:02:03 +02:00
parent 8d841f81ee
commit 1e80fb8e92
2 changed files with 1 additions and 5 deletions

View File

@ -1,4 +1,4 @@
use anyhow::{Error};
use anyhow::Error;
use std::io::Write;
/// Log messages with timestamps into files
@ -46,7 +46,6 @@ impl FileLogger {
}
pub fn log<S: AsRef<str>>(&mut self, msg: S) {
let msg = msg.as_ref();
let mut stdout = std::io::stdout();