chore: Drop unnecessary mut
This commit is contained in:
parent
846b53dc1b
commit
2560bdc804
|
@ -129,12 +129,11 @@ 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());
|
};
|
||||||
};
|
|
||||||
|
|
||||||
let my_class = this
|
let my_class = this
|
||||||
.as_class_object()
|
.as_class_object()
|
||||||
|
|
Loading…
Reference in New Issue