From 38513f12b3aee477d3344b3eeb9ec678f53adbea Mon Sep 17 00:00:00 2001 From: Damian Senn Date: Fri, 10 May 2024 09:11:09 +0200 Subject: [PATCH] refactor: elide unnecessary lifetimes --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 12870c8..21e3145 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,7 +2,7 @@ use mlua::prelude::{Lua, LuaError, LuaResult, LuaTable}; use mlua::LuaSerdeExt; use serde_yaml::Value as YamlValue; -fn yaml_to_lua<'lua>(lua: &'lua Lua, yamlstr: String) -> LuaResult> { +fn yaml_to_lua(lua: &Lua, yamlstr: String) -> LuaResult> { let yaml: YamlValue = serde_yaml::from_str(&yamlstr).map_err(LuaError::external)?; lua.to_value(&yaml)