From 3dc859af58fa0b4676f86f7ba8a5cf5db546831a Mon Sep 17 00:00:00 2001 From: __JM_Joy__ <918734043@qq.com> Date: Thu, 27 Feb 2020 21:34:06 +0800 Subject: [PATCH] Fix missing `std::error::Error` implement for `MultipartError`. (#1382) * Fix missing `std::error::Error` implement for `MultipartError`. * Update actix-multipart CHANGES.md. --- actix-multipart/CHANGES.md | 2 ++ actix-multipart/src/error.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/actix-multipart/CHANGES.md b/actix-multipart/CHANGES.md index d73a69393..ed5c8ad3f 100644 --- a/actix-multipart/CHANGES.md +++ b/actix-multipart/CHANGES.md @@ -4,6 +4,8 @@ * Remove the unused `time` dependency +* Fix missing `std::error::Error` implement for `MultipartError`. + ## [0.2.0] - 2019-12-20 * Release diff --git a/actix-multipart/src/error.rs b/actix-multipart/src/error.rs index 6677f69c7..cdbb5d395 100644 --- a/actix-multipart/src/error.rs +++ b/actix-multipart/src/error.rs @@ -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 {