1
0
mirror of https://github.com/pcvolkmer/osc-variant.git synced 2025-12-16 07:33:20 +00:00

refactor: replace for_each() with for loop

This commit is contained in:
2024-12-14 14:01:08 +01:00
parent 3445c3db3e
commit bf90738dc6
5 changed files with 27 additions and 25 deletions

View File

@@ -269,11 +269,11 @@ impl<Type: 'static> Sortable for Form<Type> {
if let Some(ref mut plausibility_rule) = self.plausibility_rules.plausibility_rule {
plausibility_rule.sort_unstable_by_key(|item| item.bezeichnung.clone());
plausibility_rule.iter_mut().for_each(|item| {
for item in plausibility_rule {
if let Some(ref mut data_form_entry_names) = item.data_form_entries.entry_name {
data_form_entry_names.sort_unstable();
}
});
}
}
self
}