Short-circuit with nil when it encounters a nil value.
{ engine.compile(src).map_or_else( |e| { tracing::warn!( { regexes = format!("{exprs:?}") }, "unable to convert global to constant: {e}" ); Ok((None, Some("unable to construct ASN matcher: {e}"); Ok((None, Some("unable to construct patterm matcher: {e}" ); Ok((None, Some("unable to construct RegexSet matcher"))?; Ok(Self::RegexSetMatcher(RegexSetMatcher(res.into()))) } pub fn library() -> impl Registerable { library! { #[clone] type TemplateEngine = Val<TemplateEngine>; #[clone] type.