Quiet some new clippy warnings

This commit is contained in:
2019-11-26 17:10:24 +01:00
parent e8e50bca8f
commit d1dffdf890
2 changed files with 4 additions and 4 deletions

View File

@@ -22,8 +22,8 @@ fn put(path: Path<String>) -> HandlerResult {
fn get((path, state): (Path<(String, String)>, Data<RwLock<SharedState>>)) -> HandlerResult {
trace!("GET '{:?}'", path);
let (core, id) = path.into_inner();
let core = core.to_string();
let id = id.to_string();
let core = core;
let id = id;
let context = state.read().unwrap();
let db = context.db();

View File

@@ -84,7 +84,7 @@ impl SharedState {
match execution {
Err(e) => {
debug!("Parsing failed: \n{:?}", e);
Err(e.to_string())
Err(e)
}
results @ Ok(_) => results,
}
@@ -145,7 +145,7 @@ impl SharedState {
match execution {
Err(e) => {
debug!("Parsing failed: \n{:?}", e);
Err(e.to_string())
Err(e)
}
results @ Ok(_) => results,
}