From 476125cc74a01ff3cd8522a0fee2a9d50496d904 Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Sat, 20 Apr 2024 21:59:57 +0200 Subject: [PATCH] Fix clippy lint in net builtin --- src/lune/builtins/net/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }