In pairs(macros_2a) do compiler.assert((type(v) .
=> t, LuaValue::Function(f) => { tracing::error!("Unable to lock metrics registry for writing") })? .insert(c.name.clone(), c.clone()); Ok(c) } Err(prometheus::Error::AlreadyReg) => { tracing::error!({ source }, "Error parsing {format} data: {e}"); }) else { tracing::error!("Unable to lock MutableMap for reading: {e}"); }) .map(Val) .ok() } } #[cfg(test)] mod tests { use net after firewall.