Skip to content

Commit e5e0b2f

Browse files
Fix compiler warning (#70)
1 parent b9cfa40 commit e5e0b2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ pub enum Error {
482482
// Passthrough Debug to Display, since errors should be user-visible
483483
impl fmt::Display for Error {
484484
fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> {
485-
f.write_str(error::Error::description(self))
485+
f.write_str(&self.to_string())
486486
}
487487
}
488488

0 commit comments

Comments
 (0)