change for loop syntax in build_combo_box

This commit is contained in:
2025-04-17 20:38:16 +01:00
parent c85a169765
commit b71dbbdf03
+2 -2
View File
@@ -362,9 +362,9 @@ where
egui::ComboBox::from_id_salt(label) egui::ComboBox::from_id_salt(label)
.selected_text(current_value.to_string()) .selected_text(current_value.to_string())
.show_ui(ui, |ui| { .show_ui(ui, |ui| {
for v in E::iter() { E::iter().for_each(|v| {
ui.selectable_value(current_value, v, v.to_string()); ui.selectable_value(current_value, v, v.to_string());
} });
}); });
} }