Skip to content

Commit ac8cbb2

Browse files
committed
nits and use proper defaults
1 parent 5279685 commit ac8cbb2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

analysis/src/Commands.ml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,12 +256,14 @@ let format ~path =
256256
Res_driver.parsingEngine.parseImplementation ~forPrinter:true
257257
~filename:path
258258
in
259-
Res_driver.printEngine.printImplementation 80 path comments structure
259+
Res_driver.printEngine.printImplementation !Res_cli.ResClflags.width path
260+
comments structure
260261
else if Filename.check_suffix path ".resi" then
261-
let {Res_driver.parsetree = structure; comments} =
262+
let {Res_driver.parsetree = signature; comments} =
262263
Res_driver.parsingEngine.parseInterface ~forPrinter:true ~filename:path
263264
in
264-
Res_driver.printEngine.printInterface 80 path comments structure
265+
Res_driver.printEngine.printInterface !Res_cli.ResClflags.width path
266+
comments signature
265267

266268
let test ~path =
267269
Uri2.stripPath := true;

0 commit comments

Comments
 (0)