feat: error from Io errors

This commit is contained in:
nazeh
2023-12-11 17:52:02 +03:00
parent 0ec3c5acbe
commit 5b2bfc878f

View File

@@ -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),
}