Skip to content

Commit

Permalink
Merge pull request #7 from ldicocco/implement-stderrorError-for-Print…
Browse files Browse the repository at this point in the history
…erError

implement std::error::Error for PrinterError
  • Loading branch information
fabienbellanger committed Feb 23, 2024
2 parents 2320561 + 9ee0d09 commit 9a593d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ pub enum PrinterError {
Input(String),
}

impl std::error::Error for PrinterError {}

impl fmt::Display for PrinterError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match *self {
Expand Down

0 comments on commit 9a593d2

Please sign in to comment.