1 2 3 4 5 6 7 8
use crate::{GameError, GameErrorKind}; use reqwest::Error; impl From<reqwest::Error> for GameError { fn from(value: Error) -> Self { GameErrorKind::ServiceError { external_code: 0, source: "".to_string(), message: value.to_string() }.into() } }