Skip to content

Commit 2eac9de

Browse files
committed
Remove error::Error::description
The `description` method is deprecated since Rust 1.33.0, now we are on MSRV of 1.41.1 we can remove it in favour of `Display`.
1 parent 3bdeb8c commit 2eac9de

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

src/miniscript/types/mod.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,6 @@ impl<Pk: MiniscriptKey, Ctx: ScriptContext> error::Error for Error<Pk, Ctx> {
108108
fn cause(&self) -> Option<&dyn error::Error> {
109109
None
110110
}
111-
112-
fn description(&self) -> &str {
113-
"description() is deprecated; use Display"
114-
}
115111
}
116112

117113
impl<Pk: MiniscriptKey, Ctx: ScriptContext> fmt::Display for Error<Pk, Ctx> {

src/policy/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,6 @@ pub enum LiftError {
6767
}
6868

6969
impl error::Error for LiftError {
70-
fn description(&self) -> &str {
71-
""
72-
}
7370
fn cause(&self) -> Option<&dyn error::Error> {
7471
None
7572
}

0 commit comments

Comments
 (0)