mirror of
https://github.com/powdr-labs/powdr.git
synced 2026-01-09 14:48:16 -05:00
Group into btreeset directly (#3105)
Co-authored-by: Georg Wiese <georgwiese@gmail.com>
This commit is contained in:
@@ -341,9 +341,7 @@ fn variable_occurrences<T: RuntimeConstant, V: Hash + Eq + Clone>(
|
||||
});
|
||||
occurrences_in_algebraic_constraints
|
||||
.chain(occurrences_in_bus_interactions)
|
||||
.into_group_map()
|
||||
.into_iter()
|
||||
.map(|(variable, occurrences)| (variable, occurrences.into_iter().collect::<BTreeSet<_>>()))
|
||||
.into_grouping_map()
|
||||
.collect()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user