1 2 3 4 5 6 7 8 9
use crate::{AliError, AliErrorKind}; use reqwest::Error; impl From<Error> for AliError { fn from(value: Error) -> Self { let kind = AliErrorKind::Network { message: value.to_string() }; Self { kind: Box::new(kind) } } }