chore: Drop unnecessary mut

This commit is contained in:
Adrian Wielgosik 2021-05-04 16:56:29 +02:00 committed by kmeisthax
parent 846b53dc1b
commit 2560bdc804
1 changed files with 5 additions and 6 deletions

View File

@ -129,8 +129,7 @@ pub fn concat<'gc>(
args: &[Value<'gc>], args: &[Value<'gc>],
) -> Result<Value<'gc>, Error> { ) -> Result<Value<'gc>, Error> {
if let Some(this) = this { if let Some(this) = this {
let mut new_vector_storage = let mut new_vector_storage = if let Some(vector) = this.as_vector_storage() {
if let Some(vector) = this.as_vector_storage_mut(activation.context.gc_context) {
vector.clone() vector.clone()
} else { } else {
return Err("Not a vector-structured object".into()); return Err("Not a vector-structured object".into());