Skip to content

Commit

Permalink
relaxed return types
Browse files Browse the repository at this point in the history
  • Loading branch information
Arogbonlo authored Oct 29, 2024
1 parent 3ff5c34 commit 5bdf566
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib_eio/unix/private.ml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ type _ Effect.t +=
let await_readable fd = Effect.perform (Await_readable fd)
let await_writable fd = Effect.perform (Await_writable fd)

let pipe sw = Effect.perform (Pipe sw)
let pipe sw =
let (src, sink) = Effect.perform (Pipe sw) in
(src :> source_ty r),
(sink :> sink_ty r)

module Rcfd = Rcfd
module Fork_action = Fork_action
Expand Down

0 comments on commit 5bdf566

Please sign in to comment.