Skip to content

Commit 5bdf566

Browse files
authored
relaxed return types
1 parent 3ff5c34 commit 5bdf566

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib_eio/unix/private.ml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ type _ Effect.t +=
1212
let await_readable fd = Effect.perform (Await_readable fd)
1313
let await_writable fd = Effect.perform (Await_writable fd)
1414

15-
let pipe sw = Effect.perform (Pipe sw)
15+
let pipe sw =
16+
let (src, sink) = Effect.perform (Pipe sw) in
17+
(src :> source_ty r),
18+
(sink :> sink_ty r)
1619

1720
module Rcfd = Rcfd
1821
module Fork_action = Fork_action

0 commit comments

Comments
 (0)