chore: Fix formatting

This commit is contained in:
EmperorBale 2021-12-06 17:20:19 -08:00 committed by Adrian Wielgosik
parent a192fbb113
commit d6b7d0c915
2 changed files with 2 additions and 8 deletions

View File

@ -987,12 +987,7 @@ fn extract_array_values<'gc>(
let mut unholey_vec = Vec::with_capacity(holey_vec.length());
for (i, v) in holey_vec.iter().enumerate() {
unholey_vec.push(resolve_array_hole(
activation,
object.unwrap(),
i,
v,
)?);
unholey_vec.push(resolve_array_hole(activation, object.unwrap(), i, v)?);
}
Ok(Some(unholey_vec))

View File

@ -658,8 +658,7 @@ pub fn map<'gc>(
while let Some(r) = iter.next(activation) {
let (i, item) = r?;
let new_item =
callback.call(receiver, &[item, i.into(), this.into()], activation)?;
let new_item = callback.call(receiver, &[item, i.into(), this.into()], activation)?;
let coerced_item = new_item.coerce_to_type(activation, value_type)?;
new_storage.push(coerced_item)?;