diff --git a/src/rest_api/spatial_object.rs b/src/rest_api/spatial_object.rs index 298bdf5..e92f532 100644 --- a/src/rest_api/spatial_object.rs +++ b/src/rest_api/spatial_object.rs @@ -22,8 +22,8 @@ fn put(path: Path) -> HandlerResult { fn get((path, state): (Path<(String, String)>, Data>)) -> 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(); diff --git a/src/shared_state.rs b/src/shared_state.rs index 4d0bc2c..a175e9d 100644 --- a/src/shared_state.rs +++ b/src/shared_state.rs @@ -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, }