Skip to content

Commit 452bfcc

Browse files
committed
Upgrade to ocamlformat 0.28.1
1 parent d8c268d commit 452bfcc

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.ocamlformat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
version=0.27.0
1+
version=0.28.1
22
profile=janestreet
33
ocaml-version=4.14.0

dune-project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ possible and does not make any assumptions about IO.
6464
astring
6565
camlp-streams
6666
(ppx_expect (and (>= v0.17.0) :with-test))
67-
(ocamlformat (and :with-test (= 0.27.0)))
67+
(ocamlformat (and :with-test (= 0.28.1)))
6868
(ocamlc-loc (>= 3.7.0))
6969
(pp (>= 1.1.2))
7070
(csexp (>= 1.5))

ocaml-lsp-server.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ depends: [
3939
"astring"
4040
"camlp-streams"
4141
"ppx_expect" {>= "v0.17.0" & with-test}
42-
"ocamlformat" {with-test & = "0.27.0"}
42+
"ocamlformat" {with-test & = "0.28.1"}
4343
"ocamlc-loc" {>= "3.7.0"}
4444
"pp" {>= "1.1.2"}
4545
"csexp" {>= "1.5"}

ocaml-lsp-server/src/code_actions/action_inline.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,12 +217,12 @@ let beta_reduce (paths : Paths.t) (app : Parsetree.expression) =
217217
if is_pure arg then body else with_let ()
218218
| Ppat_var param | Ppat_constraint ({ ppat_desc = Ppat_var param; _ }, _) ->
219219
if is_pure arg then with_subst param else with_let ()
220-
| Ppat_tuple ( pats, _) ->
220+
| Ppat_tuple (pats, _) ->
221221
let pats = List.map ~f:snd pats in
222222
(match arg.pexp_desc with
223223
| Pexp_tuple args ->
224-
let args = List.map ~f:snd args in
225-
List.fold_left2 ~f:beta_reduce_arg ~init:body pats args
224+
let args = List.map ~f:snd args in
225+
List.fold_left2 ~f:beta_reduce_arg ~init:body pats args
226226
| _ -> with_let ())
227227
| _ -> with_let ()
228228
in

0 commit comments

Comments
 (0)