Skip to content

Commit

Permalink
Update src/driver/odoc_unit.ml
Browse files Browse the repository at this point in the history
Co-authored-by: Paul-Elliot Anglès d'Auriac <[email protected]>
  • Loading branch information
jonludlam and panglesd committed Feb 20, 2025
1 parent 941cb5b commit fdfb3e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/driver/odoc_unit.ml
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ let fix_virtual ~(precompiled_units : intf t list Util.StringMap.t)
cmti found for %a"
(List.length xs) Fpath.pp unit.input_file);
let possibles =
List.filter_map
List.find_map
(fun x ->
match x.input_copy with
| Some x ->
Expand All @@ -221,10 +221,10 @@ let fix_virtual ~(precompiled_units : intf t list Util.StringMap.t)
xs
in
match possibles with
| [] ->
| None ->
Logs.debug (fun m -> m "Not replacing input file");
unit
| x :: _ ->
| Some x ->
Logs.debug (fun m ->
m "Replacing input_file of unit with %a" Fpath.pp x);
{ unit with input_file = x })))
Expand Down

0 comments on commit fdfb3e1

Please sign in to comment.