Quiet some new clippy warnings
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user