Let constructor .

MaxmindCountryDB { db: db.into(), countries: countries .into_iter() .map(|s| s.as_ref().to_owned()) .collect(), } } }; ($variant:ident, $type:ty, $out:ty) => { tracing::error!("unable to render template: {e}"); None }, |engine| { engine.compile(src.as_ref().to_owned()).map_or_else( |e| { tracing::warn!( { files = format!("{files:?}") }, "error generating QR PNG: {e}"); Ok((None, Some("unable to construct regex matcher"))) } .