|
@@ -51,5 +51,5 @@ pub fn create_snippet<'a>(
|
51
|
51
|
) -> Result<status::Created<Json<Snippet>>, Status> {
|
52
|
52
|
snippet::insert(snippet.into_inner(), &connection)
|
53
|
53
|
.map(|snippet| status::Created(String::from(""), Some(Json(snippet))))
|
54
|
|
- .map_err(error_response(error)
|
|
54
|
+ .map_err(error_response)
|
55
|
55
|
}
|