Skip to content

Commit

Permalink
Remove error::Error::description
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
tcharding committed May 19, 2022
1 parent 3bdeb8c commit 2eac9de
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions src/miniscript/types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,6 @@ impl<Pk: MiniscriptKey, Ctx: ScriptContext> error::Error for Error<Pk, Ctx> {
fn cause(&self) -> Option<&dyn error::Error> {
None
}

fn description(&self) -> &str {
"description() is deprecated; use Display"
}
}

impl<Pk: MiniscriptKey, Ctx: ScriptContext> fmt::Display for Error<Pk, Ctx> {
Expand Down
3 changes: 0 additions & 3 deletions src/policy/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ pub enum LiftError {
}

impl error::Error for LiftError {
fn description(&self) -> &str {
""
}
fn cause(&self) -> Option<&dyn error::Error> {
None
}
Expand Down

0 comments on commit 2eac9de

Please sign in to comment.