Skip to content

Commit

Permalink
Apply cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
notinmybackyaard committed Feb 26, 2025
1 parent 6b2e07a commit 0c69e7d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/sparse_set/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,8 @@ impl<T: Component> SparseSet<T> {
data: self.data.capacity() * size_of::<T>(),
insertion_data: self.insertion_data.capacity() * size_of::<TrackingTimestamp>(),
modification_data: self.modification_data.capacity() * size_of::<TrackingTimestamp>(),
deletion_data: self.deletion_data.capacity() * size_of::<(EntityId, TrackingTimestamp, T)>(),
deletion_data: self.deletion_data.capacity()
* size_of::<(EntityId, TrackingTimestamp, T)>(),
removal_data: self.removal_data.capacity() * size_of::<(EntityId, TrackingTimestamp)>(),
self_data: size_of::<Self>(),
};
Expand Down Expand Up @@ -1435,7 +1436,10 @@ mod tests {
+ expected_removal_tracking_memory
+ expected_self_memory;

let StorageMemoryUsage::SparseSet { used_memory_bytes, .. } = sparse_set.private_memory_usage() else {
let StorageMemoryUsage::SparseSet {
used_memory_bytes, ..
} = sparse_set.private_memory_usage()
else {
unreachable!()
};
assert_eq!(used_memory_bytes, expected_total_memory);
Expand Down

0 comments on commit 0c69e7d

Please sign in to comment.