mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-23 16:21:06 +01: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:
parent
1fa02b5f1c
commit
3dc859af58
@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
* Remove the unused `time` dependency
|
* Remove the unused `time` dependency
|
||||||
|
|
||||||
|
* Fix missing `std::error::Error` implement for `MultipartError`.
|
||||||
|
|
||||||
## [0.2.0] - 2019-12-20
|
## [0.2.0] - 2019-12-20
|
||||||
|
|
||||||
* Release
|
* Release
|
||||||
|
@ -33,6 +33,8 @@ pub enum MultipartError {
|
|||||||
NotConsumed,
|
NotConsumed,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl std::error::Error for MultipartError {}
|
||||||
|
|
||||||
/// Return `BadRequest` for `MultipartError`
|
/// Return `BadRequest` for `MultipartError`
|
||||||
impl ResponseError for MultipartError {
|
impl ResponseError for MultipartError {
|
||||||
fn status_code(&self) -> StatusCode {
|
fn status_code(&self) -> StatusCode {
|
||||||
|
Loading…
Reference in New Issue
Block a user