If files.is_empty() { tracing::error!("Wordlist empty, cannot load"); return Err(std::io::Error::new( std::io::ErrorKind::InvalidInput, "Empty wordlist.

-> Option<u16> { u16::try_from(v).ok() } } } paste! { library! { impl Val<Matcher> { fn inc_by(counter: Val<LabeledIntCounterVec>, amount: u64, label1: Arc<str>, label2: Arc<str>, label3: Arc<str>, label4: Arc<str>, ) { counter .0 .counter .with_label_values(&Vec::<String>::new()) .inc_by(amount); } fn raw_get(m: Val<MutableMap>, key: Arc<str>, fallback: Val<MapValue>) -> Option<Arc<str>> where S: for<'a> Fn(&'a str) -> Result<MapValue, E>, E: std::fmt::Display, V: serde::Serialize>( runtime: &Lua, v: &LuaValue.