feat: обновить методы обработки данных и улучшить обработку ошибок в библиотеке

This commit is contained in:
2026-02-11 21:43:40 +00:00
parent 3410b54793
commit 662b292b5b
7 changed files with 215 additions and 31 deletions

View File

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