Skip to content

Commit

Permalink
Don't use Map.of_list/to_list, it's too new
Browse files Browse the repository at this point in the history
Signed-off-by: Ambre Austen Suhamy <[email protected]>
  • Loading branch information
ElectreAAS committed Nov 15, 2024
1 parent fb3e1a7 commit c0d37b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/0install-solver/diagnostics.ml
Original file line number Diff line number Diff line change
Expand Up @@ -409,11 +409,11 @@ module Make (Results : S.SOLVER_RESULT) = struct
let+ rejects, feed_problems = Model.rejects role in
Component.create ~role (impl_candidates, rejects, feed_problems) diagnostics impl
in
RoleMap.to_list impls
RoleMap.bindings impls
|> Fiber.parallel_map ~f:(fun (k, v) ->
let+ v = get_selected k v in
k, v)
|> Fiber.map ~f:RoleMap.of_list
|> Fiber.map ~f:(fun s -> RoleMap.of_seq (List.to_seq s))
in
examine_extra_restrictions report;
check_conflict_classes report;
Expand Down

0 comments on commit c0d37b2

Please sign in to comment.