Skip to content

Commit 8eaedb5

Browse files
committed
Rewrite anonymous functions dealing wiht Msg to fun (Msg ...)
Signed-off-by: Nathan Rebours <[email protected]>
1 parent 3d369f3 commit 8eaedb5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/block.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ let locate_error_msg ~loc s =
2727

2828
let locate_errors ~loc r =
2929
Result.map_error
30-
(fun l -> List.map (function `Msg m -> `Msg (locate_error_msg ~loc m)) l)
30+
(fun l -> List.map (fun (`Msg m) -> `Msg (locate_error_msg ~loc m)) l)
3131
r
3232

3333
module Header = struct

lib/util.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module Result = struct
2424
| Ok x -> f x
2525
| Error l ->
2626
List.iter
27-
(function `Msg m -> Printf.eprintf "[mdx] Fatal error: %s\n" m)
27+
(fun (`Msg m) -> Printf.eprintf "[mdx] Fatal error: %s\n" m)
2828
l;
2929
1
3030
end

0 commit comments

Comments
 (0)