From 662b292b5b47d0f7df3b19808db746bbc2ecc48c Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 11 Feb 2026 21:43:40 +0000 Subject: feat: обновить методы обработки данных и улучшить обработку ошибок в библиотеке MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/nres/src/error.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'crates/nres/src/error.rs') diff --git a/crates/nres/src/error.rs b/crates/nres/src/error.rs index 0a4dbbe..9a3c651 100644 --- a/crates/nres/src/error.rs +++ b/crates/nres/src/error.rs @@ -100,4 +100,11 @@ impl fmt::Display for Error { } } -impl std::error::Error for Error {} +impl std::error::Error for Error { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match self { + Self::Io(err) => Some(err), + _ => None, + } + } +} -- cgit v1.2.3