state-res: Refactor lexicographical_topological_sort
Gets rid of unnecessary copying and makes things more explicit by using a struct with named fields instead of a tuple for tie breaking. Co-authored-by: Jonathan de Jong <jonathan@automatia.nl>
This commit is contained in:
@@ -4,6 +4,8 @@ Breaking changes:
|
||||
|
||||
* Remove some trait methods from `Event`
|
||||
* Update `Event::content` signature to return `&RawJsonValue` instead of `&JsonValue`
|
||||
* The `key_fn` in `lexicographical_topological_sort` has removed the event ID from its return type
|
||||
and changed to expect just the power level, not the negated power level
|
||||
|
||||
# 0.4.1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user