1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 05:40:03 -04:00

Refactor: turn ClippedShape from struct-enum to a normal struct (#3225)

This commit is contained in:
Emil Ernerfeldt
2023-08-10 14:50:11 +02:00
committed by GitHub
parent 66cbb61ad5
commit 83c18498e9
5 changed files with 26 additions and 13 deletions

View File

@@ -183,7 +183,7 @@ impl PaintStats {
stats.shape_vec.element_size = ElementSize::Heterogenous; // nicer display later
stats.shapes = AllocInfo::from_slice(shapes);
for ClippedShape(_, shape) in shapes {
for ClippedShape { shape, .. } in shapes {
stats.add(shape);
}
stats