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

@ -521,9 +521,6 @@ async fn handle_request(api: Arc<ApiConfig>, req: Request<Body>) -> Result<Respo
let comp_len = components.len();
//println!("REQUEST {} {}", method, path);
//println!("COMPO {:?}", components);
let env_type = api.env_type();
let mut rpcenv = RestEnvironment::new(env_type);

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();