Skip to content

Commit

Permalink
Fix compiler warning (mimblewimble#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinlesceller authored and suemto committed Oct 28, 2020
1 parent 6769912 commit 088c444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ pub enum Error {
// Passthrough Debug to Display, since errors should be user-visible
impl fmt::Display for Error {
fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> {
f.write_str(error::Error::description(self))
f.write_str(&self.to_string())
}
}

Expand Down

0 comments on commit 088c444

Please sign in to comment.