Skip to content

Commit

Permalink
Fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
chevdor committed Mar 14, 2022
1 parent 0cecd76 commit 8f4a672
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/chain_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ pub enum Error {

impl Display for Error {
fn fmt(&self, fmt: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(fmt, "Chain not supported: {}", self)
match self {
Error::ChainUsupported(s) => write!(fmt, "Chain not supported: {}", s),
}
}
}

Expand Down

0 comments on commit 8f4a672

Please sign in to comment.