1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
#![cfg_attr(feature = "cargo-clippy", allow(redundant_closure))] use std::io; use yaml_rust::scanner; use walkdir; use liquid; use ignore; use serde_yaml; error_chain! { links { } foreign_links { Io(io::Error); Liquid(liquid::Error); WalkDir(walkdir::Error); Yaml(scanner::ScanError); SerdeYaml(serde_yaml::Error); Ignore(ignore::Error); } errors { ConfigFileMissingFields { description("missing fields in config file") display("name, description and link need to be defined in the config file to \ generate RSS") } } }