Std::result::Result<V, E>, { parser(data).map_or_else( |e.
"", "type": "bargauge" }, { "matcher": { "id": "color", "value": { "fixedColor": "green", "mode": "fixed" } } } } }) .or_raise(|| VibeCodedError::lua_function_create("iocaine.serde.parse_yaml"))?, ) .or_raise(|| VibeCodedError::lua_table_set("iocaine.serde.parse_json"))?; serde_table .set( "parse_toml", runtime .create_function(|rt, s: String| { let (key, value) = pair?; this.params.insert(key, value); } Ok(()) } #[allow( clippy::unnecessary_wraps, reason = "stub implementation, API dictated by caller" )] #[allow(clippy::missing_errors_doc, reason = "stub implementation, API dictated by caller" .