Remove redundant clone

This commit is contained in:
Tobie Morgan Hitchcock 2022-08-29 00:06:24 +01:00
parent c1a1eba8b5
commit f8535b0546

View file

@ -94,7 +94,7 @@ pub fn string(_: &Context, mut args: Vec<Value>) -> Result<Value, Error> {
pub fn table(_: &Context, mut args: Vec<Value>) -> Result<Value, Error> { pub fn table(_: &Context, mut args: Vec<Value>) -> Result<Value, Error> {
Ok(Value::Table(Table(match args.remove(0) { Ok(Value::Table(Table(match args.remove(0) {
Value::Thing(t) => t.tb.clone(), Value::Thing(t) => t.tb,
v => v.as_string(), v => v.as_string(),
}))) })))
} }