diff --git a/src/lune/builtins/net/mod.rs b/src/lune/builtins/net/mod.rs index 9943c1f..9449e6b 100644 --- a/src/lune/builtins/net/mod.rs +++ b/src/lune/builtins/net/mod.rs @@ -46,7 +46,7 @@ fn net_json_encode<'lua>( .serialize_to_string(lua, val) } -fn net_json_decode<'lua>(lua: &'lua Lua, json: BString) -> LuaResult> { +fn net_json_decode(lua: &Lua, json: BString) -> LuaResult { EncodeDecodeConfig::from(EncodeDecodeFormat::Json).deserialize_from_string(lua, json) }