Skip to content

Commit

Permalink
Add a unit argument in make_formatter.
Browse files Browse the repository at this point in the history
  • Loading branch information
Drup committed Feb 15, 2018
1 parent 45cde1d commit b79c04c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/unix/Lwt_fmt.ml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type formatter = {
let write_pending ppft = ppft.commit ()
let flush ppft = Format.pp_print_flush ppft.ppf () ; ppft.commit ()

let make_formatter ~commit ~ppf = { commit ; ppf }
let make_formatter ~commit ~ppf () = { commit ; ppf }

(** Stream formatter *)

Expand All @@ -48,7 +48,7 @@ let make_stream () =
(* Not sure about that one *)
Gc.finalise (fun _ -> push None) ppf ;
let commit () = Lwt.return_unit in
stream, make_formatter ~commit ~ppf
stream, make_formatter ~commit ~ppf ()

(** Channel formatter *)

Expand All @@ -75,7 +75,7 @@ let of_channel oc =
in
let ppf = Format.make_formatter out_string flush in
let commit () = write_orders oc q in
make_formatter ~commit ~ppf
make_formatter ~commit ~ppf ()

(** Printing functions *)

Expand Down

0 comments on commit b79c04c

Please sign in to comment.