1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

Flip if-else:s with a negation (#8063)

This commit is contained in:
Emil Ernerfeldt
2026-04-04 12:03:41 +02:00
committed by GitHub
parent eb35f7d12f
commit c2b482ff7e
9 changed files with 44 additions and 44 deletions

View File

@@ -135,10 +135,10 @@ impl AllocInfo {
what,
self.megabytes()
)
} else if self.element_size != ElementSize::Heterogenous {
} else if self.element_size == ElementSize::Heterogenous {
format!(
"{:6} {:16} {} {:3} allocations",
self.num_elements(),
"",
what,
self.megabytes(),
self.num_allocs()
@@ -146,7 +146,7 @@ impl AllocInfo {
} else {
format!(
"{:6} {:16} {} {:3} allocations",
"",
self.num_elements(),
what,
self.megabytes(),
self.num_allocs()