Remove redundant clone
This commit is contained in:
parent
c1a1eba8b5
commit
f8535b0546
1 changed files with 1 additions and 1 deletions
|
@ -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(),
|
||||||
})))
|
})))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue