Skip to content

Commit

Permalink
refactor: elide unnecessary lifetimes
Browse files Browse the repository at this point in the history
  • Loading branch information
topaxi committed May 10, 2024
1 parent 15ccd12 commit 38513f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<mlua::Value<'lua>> {
fn yaml_to_lua(lua: &Lua, yamlstr: String) -> LuaResult<mlua::Value<'_>> {
let yaml: YamlValue = serde_yaml::from_str(&yamlstr).map_err(LuaError::external)?;

lua.to_value(&yaml)
Expand Down

0 comments on commit 38513f1

Please sign in to comment.