Skip to content

Commit

Permalink
s/Rule_set/Rule.Set/g
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
  • Loading branch information
rgrinberg committed Dec 26, 2018
1 parent 528ed3a commit 1f78434
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/build_system.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1467,16 +1467,16 @@ module Rule = struct
}

let compare a b = Id.compare a.id b.id
end

module Rule_set = Set.Make(Rule)
module Set = Set.Make(struct type nonrec t = t let compare = compare end)
end

let rules_for_files rules deps =
Path.Set.fold (Deps.paths deps) ~init:Rule_set.empty ~f:(fun path acc ->
Path.Set.fold (Deps.paths deps) ~init:Rule.Set.empty ~f:(fun path acc ->
match Path.Map.find rules path with
| None -> acc
| Some rule -> Rule_set.add acc rule)
|> Rule_set.to_list
| Some rule -> Rule.Set.add acc rule)
|> Rule.Set.to_list

let build_rules_internal ?(recursive=false) t ~request =
let rules = ref [] in
Expand Down

0 comments on commit 1f78434

Please sign in to comment.