From a22e4cfa36de349a57c3ac4d924c69c9805a945b Mon Sep 17 00:00:00 2001 From: Arniu Tseng Date: Mon, 30 Nov 2020 19:19:32 +0800 Subject: [PATCH] impl `std::error::Error` for `Error` (#135) --- actix-redis/CHANGES.md | 2 +- actix-redis/src/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/actix-redis/CHANGES.md b/actix-redis/CHANGES.md index fc6ddd4d0..a44213503 100644 --- a/actix-redis/CHANGES.md +++ b/actix-redis/CHANGES.md @@ -1,7 +1,7 @@ # Changes ## Unreleased - 2020-xx-xx - +* Implement `std::error::Error` for `Error` [#135] ## 0.9.1 - 2020-09-12 * Enforce minimum redis-async version of 0.6.3 to workaround breaking patch change. diff --git a/actix-redis/src/lib.rs b/actix-redis/src/lib.rs index efa5f9bfa..111512567 100644 --- a/actix-redis/src/lib.rs +++ b/actix-redis/src/lib.rs @@ -12,7 +12,7 @@ mod redis; pub use redis::{Command, RedisActor}; -use derive_more::{Display, From}; +use derive_more::{Display, Error, From}; #[cfg(feature = "web")] mod session; @@ -22,7 +22,7 @@ pub use actix_web::cookie::SameSite; pub use session::RedisSession; /// General purpose actix redis error -#[derive(Debug, Display, From)] +#[derive(Debug, Display, Error, From)] pub enum Error { #[display(fmt = "Redis error {}", _0)] Redis(redis_async::error::Error),