diff --git a/src/lib.rs b/src/lib.rs index 11a03dd26..5ee762010 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -37,6 +37,9 @@ pub enum Error { Disconnected, } +#[cfg(feature = "web")] +impl actix_web::ResponseError for Error {} + // re-export pub use redis_async::error::Error as RespError; pub use redis_async::resp::RespValue;