1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-11-22 01:21:10 +00:00

Fix missing std::error::Error implement for MultipartError. (#1382)

* Fix missing `std::error::Error` implement for `MultipartError`.

* Update actix-multipart CHANGES.md.
This commit is contained in:
__JM_Joy__ 2020-02-27 21:34:06 +08:00 committed by GitHub
parent 1fa02b5f1c
commit 3dc859af58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

@ -4,6 +4,8 @@
* Remove the unused `time` dependency
* Fix missing `std::error::Error` implement for `MultipartError`.
## [0.2.0] - 2019-12-20
* Release

View file

@ -33,6 +33,8 @@ pub enum MultipartError {
NotConsumed,
}
impl std::error::Error for MultipartError {}
/// Return `BadRequest` for `MultipartError`
impl ResponseError for MultipartError {
fn status_code(&self) -> StatusCode {