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(), }))) }