use std::io; mod law; pub struct Error { msg: String, } impl From for Error { fn from(value: ureq::Error) -> Self { Self { msg: value.to_string(), } } } impl From for Error { fn from(value: io::Error) -> Self { Self { msg: value.to_string(), } } } impl From for Error { fn from(value: serde_json::Error) -> Self { Self { msg: value.to_string(), } } } fn main() { law::parse(10001905); }