thin_fetch/error.rs
1#[blehrror::make_error(module = crate::error)]
2pub struct Error {
3 pub message: String,
4}
5
6impl From<Error> for std::io::Error {
7 fn from(value: Error) -> Self {
8 Self::other(value)
9 }
10}
11
12impl From<std::io::Error> for Error {
13 fn from(value: std::io::Error) -> Self {
14 Self::new(value.to_string())
15 }
16}