Skip to content

Commit

Permalink
re-add serde error impls
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Jun 25, 2021
1 parent 9a26393 commit 5a480d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/error/response_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ impl ResponseError for serde::de::value::Error {
}
}

impl ResponseError for serde_json::Error {}

impl ResponseError for serde_urlencoded::ser::Error {}

impl ResponseError for std::str::Utf8Error {
fn status_code(&self) -> StatusCode {
StatusCode::BAD_REQUEST
Expand Down

0 comments on commit 5a480d1

Please sign in to comment.