Skip to content

Commit bade3d8

Browse files
committed
Implement std::error::Error for ClientError
1 parent 5d20c03 commit bade3d8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/sidekiq/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ enum ErrorKind {
2727
PoolInit(r2d2::Error),
2828
}
2929

30+
impl std::error::Error for ClientError {}
31+
3032
pub fn create_redis_pool() -> Result<RedisPool, ClientError> {
3133
let redis_url =
3234
&env::var(&REDIS_URL_ENV.to_owned()).unwrap_or_else(|_| REDIS_URL_DEFAULT.to_owned());

0 commit comments

Comments
 (0)