Skip to content

Commit 776a767

Browse files
committed
luv_unix: don't refer to module Result
1 parent 0b8496b commit 776a767

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/unix/luv_unix.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ struct
2020
let storage = Ctypes.(raw_address_of_ptr (to_voidp (addr os_fd))) in
2121
from_unix_helper unix_fd storage;
2222
if C.Functions.Os_fd.is_invalid_handle_value os_fd then
23-
Result.Error `EBADF
23+
Error `EBADF
2424
else
25-
Result.Ok os_fd
25+
Ok os_fd
2626

2727
external to_unix_helper : nativeint -> Unix.file_descr =
2828
"luv_os_fd_to_unix_fd"
@@ -43,9 +43,9 @@ struct
4343
let storage = Ctypes.(raw_address_of_ptr (to_voidp (addr os_socket))) in
4444
from_unix_helper unix_fd storage;
4545
if C.Functions.Os_fd.is_invalid_socket_value os_socket then
46-
Result.Error `EBADF
46+
Error `EBADF
4747
else
48-
Result.Ok os_socket
48+
Ok os_socket
4949

5050
external to_unix_helper : nativeint -> Unix.file_descr =
5151
"luv_os_socket_to_unix_fd"

0 commit comments

Comments
 (0)