Skip to content

Commit

Permalink
feat: error from Io errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuhvi committed Dec 11, 2023
1 parent 0ec3c5a commit 5b2bfc8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kytz/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@ pub enum Error {
/// For starter, to remove as code matures.
#[error("Generic error: {0}")]
Generic(String),

#[error(transparent)]
/// Error from `std::io::Error`.
Io(#[from] std::io::Error),
}

0 comments on commit 5b2bfc8

Please sign in to comment.