mirror of
https://github.com/actix/actix-web.git
synced 2025-04-26 03:14:43 +00:00
re-add serde error impls
This commit is contained in:
parent
9a26393375
commit
5a480d1d78
1 changed files with 4 additions and 0 deletions
|
@ -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 {
|
impl ResponseError for std::str::Utf8Error {
|
||||||
fn status_code(&self) -> StatusCode {
|
fn status_code(&self) -> StatusCode {
|
||||||
StatusCode::BAD_REQUEST
|
StatusCode::BAD_REQUEST
|
||||||
|
|
Loading…
Reference in a new issue