From 5b2bfc878f6fcb600e58edd4edecf2cf77724bb8 Mon Sep 17 00:00:00 2001 From: nazeh Date: Mon, 11 Dec 2023 17:52:02 +0300 Subject: [PATCH] feat: error from Io errors --- kytz/src/error.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kytz/src/error.rs b/kytz/src/error.rs index 5a50c37..151a66c 100644 --- a/kytz/src/error.rs +++ b/kytz/src/error.rs @@ -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), }