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/rsli/src/error.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'crates/rsli/src/error.rs') diff --git a/crates/rsli/src/error.rs b/crates/rsli/src/error.rs index c2d5a08..5a36101 100644 --- a/crates/rsli/src/error.rs +++ b/crates/rsli/src/error.rs @@ -130,4 +130,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