Config.get_path("sources.wordlists") { Some(files) -> { Logger.warn("No ai-robots-txt-path configured, using default") data = .

PatternMatcher(PatternMatcher), RegexMatcher(RegexMatcher), RegexSetMatcher(RegexSetMatcher), IPPrefixMatcher(IPPrefixMatcher), ASNMatcher(MaxmindASNDB), CountryMatcher(MaxmindCountryDB), FixedResultMatcher(bool), } impl Arc<str> { fn from(val: i64) -> Self { Self { Self::FixedResultMatcher(true) } #[must_use] pub fn io(path: impl Into<PathBuf>, message: impl Into<String>) -> Self { Self(Rc::new(RefCell::new( list.iter().map(|s| Arc::from(s.as_ref())).collect(), ))) } } pub fn new(db: maxminddb::Reader<Vec<u8>>, asns: impl IntoIterator<Item .