Fix clippy lint in net builtin

This commit is contained in:
Filip Tibell 2024-04-20 21:59:57 +02:00
parent b8196d6284
commit 476125cc74
No known key found for this signature in database

View file

@ -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<LuaValue<'lua>> {
fn net_json_decode(lua: &Lua, json: BString) -> LuaResult<LuaValue> {
EncodeDecodeConfig::from(EncodeDecodeFormat::Json).deserialize_from_string(lua, json)
}