Skip to content

Commit

Permalink
Use let () instead of let _ for ignored value
Browse files Browse the repository at this point in the history
This is simply to ease use of piqi with code that may (transitively) bring in
ppx_js_style, which requires explicit type annotation of ignored values:

https://github.com/janestreet/ppx_js_style#-allow-unannotated-ignores
  • Loading branch information
drvink committed Jun 8, 2020
1 parent e89c637 commit 81dff79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion piqic-ocaml/piqic_ocaml_ext.ml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ let gen_init_piqi modname =
iol [
ios "let piqi = "; ios modname; ios ".piqi"; eol;
eol; eol;
ios "let _ = Piqirun_ext.init_piqi piqi"; eol;
ios "let () = Piqirun_ext.init_piqi piqi"; eol;
]


Expand Down

0 comments on commit 81dff79

Please sign in to comment.