mirror of
https://github.com/actix/actix-extras.git
synced 2025-07-01 20:25:09 +02:00
impl std::error::Error
for Error
(#135)
This commit is contained in:
@ -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),
|
||||
|
Reference in New Issue
Block a user