chore: Remove explicit clones in avm2

This commit is contained in:
EmperorBale 2021-12-06 17:19:12 -08:00 committed by Adrian Wielgosik
parent 847a4fb61a
commit a192fbb113
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ impl<'gc> Avm2<'gc> {
let mut value = value.into();
if let Value::Object(o) = value {
if let Some(prim) = o.as_primitive() {
value = prim.clone();
value = *prim;
}
}