Skip to content

Commit 5d20c03

Browse files
committed
Remove deprecated Error::description and Error::cause
1 parent 523faa0 commit 5d20c03

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/sidekiq/mod.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use std::default::Default;
22
use std::env;
3-
use std::error::Error;
43
use std::fmt;
54
use std::time::{SystemTime, UNIX_EPOCH};
65

@@ -57,22 +56,6 @@ impl fmt::Display for ClientError {
5756
}
5857
}
5958

60-
impl Error for ClientError {
61-
fn description(&self) -> &str {
62-
match self.kind {
63-
ErrorKind::Redis(ref err) => err.description(),
64-
ErrorKind::PoolInit(ref err) => err.description(),
65-
}
66-
}
67-
68-
fn cause(&self) -> Option<&dyn Error> {
69-
match self.kind {
70-
ErrorKind::Redis(ref err) => Some(err),
71-
ErrorKind::PoolInit(ref err) => Some(err),
72-
}
73-
}
74-
}
75-
7659
impl From<redis::RedisError> for ClientError {
7760
fn from(error: redis::RedisError) -> ClientError {
7861
ClientError {

0 commit comments

Comments
 (0)