use std::io; use law::LawBuilder; mod law; mod overview; mod par; #[derive(Debug)] 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(), } } } impl From for Error { fn from(value: roxmltree::Error) -> Self { Self { msg: value.to_string(), } } } fn main() { env_logger::init(); let builder = LawBuilder::new("UrhG"); println!("{:#?}", builder); println!("{:#?}", builder.toc()); }