Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jarca0123 committed Apr 20, 2024
1 parent 1d0e95d commit d08bb0a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/src/avm2/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,11 @@ impl<'gc> ArrayStorage<'gc> {

/// Convert the array to a sparse representation if it meets the criteria.
fn maybe_convert_to_sparse(&mut self) {
if let ArrayStorage::Dense { storage, occupied_count } = self {
if let ArrayStorage::Dense {
storage,
occupied_count,
} = self
{
if Self::should_convert_to_sparse(storage.len(), *occupied_count) {
self.convert_to_sparse();
}
Expand Down

0 comments on commit d08bb0a

Please sign in to comment.