From f8535b0546535eabd7739dbcd9a2d5c4baa03ca8 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Mon, 29 Aug 2022 00:06:24 +0100 Subject: [PATCH] Remove redundant clone --- lib/src/fnc/type.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/fnc/type.rs b/lib/src/fnc/type.rs index 6b6d25d7..f52bd1d0 100644 --- a/lib/src/fnc/type.rs +++ b/lib/src/fnc/type.rs @@ -94,7 +94,7 @@ pub fn string(_: &Context, mut args: Vec) -> Result { pub fn table(_: &Context, mut args: Vec) -> Result { Ok(Value::Table(Table(match args.remove(0) { - Value::Thing(t) => t.tb.clone(), + Value::Thing(t) => t.tb, v => v.as_string(), }))) }