Skip to content

Commit

Permalink
Remove signature error source from display message
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Oct 8, 2024
1 parent 667a5e0 commit 15181d5
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions signature/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,7 @@ impl Debug for Error {

impl Display for Error {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.write_str("signature error")?;

#[cfg(feature = "std")]
{
if let Some(source) = &self.source {
write!(f, ": {}", source)?;
}
}

Ok(())
f.write_str("signature error")
}
}

Expand Down

0 comments on commit 15181d5

Please sign in to comment.