You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/lwt_to_direct_style/to_direct_style.t/run.t
+30-27Lines changed: 30 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -228,41 +228,42 @@ Make a writable directory tree:
228
228
Lwt_mutex.lock (line 136 column 9)
229
229
Lwt_mutex.unlock (line 137 column 9)
230
230
Lwt_mutex.with_lock (line 138 column 9)
231
-
lib/test_lwt_unix.ml: (40 occurrences)
231
+
lib/test_lwt_unix.ml: (41 occurrences)
232
232
Lwt_io (line 7 column 8)
233
233
Lwt.return (line 12 column 3)
234
234
Lwt.let* (line 10 column 3)
235
235
Lwt.let* (line 11 column 3)
236
-
Lwt.let* (line 32 column 3)
237
-
Lwt.let* (line 36 column 3)
236
+
Lwt.let* (line 29 column 3)
237
+
Lwt.let* (line 33 column 3)
238
238
Lwt.Syntax (line 1 column 6)
239
-
Lwt_io.Input (line 23 column 32)
240
-
Lwt_io.Output (line 24 column 32)
239
+
Lwt_io.Input (line 22 column 32)
240
+
Lwt_io.Output (line 23 column 32)
241
241
Lwt_io.input (line 7 column 28)
242
-
Lwt_io.input (line 32 column 36)
243
-
Lwt_io.output (line 22 column 32)
244
-
Lwt_io.output (line 36 column 36)
245
-
Lwt_io.output_channel (line 27 column 9)
246
-
Lwt_io.close (line 33 column 3)
242
+
Lwt_io.input (line 29 column 36)
243
+
Lwt_io.output (line 21 column 32)
244
+
Lwt_io.output (line 33 column 36)
245
+
Lwt_io.output_channel (line 25 column 9)
246
+
Lwt_io.close (line 30 column 3)
247
247
Lwt_io.of_fd (line 7 column 16)
248
+
Lwt_io.of_fd (line 21 column 13)
248
249
Lwt_io.of_fd (line 22 column 13)
249
250
Lwt_io.of_fd (line 23 column 13)
250
-
Lwt_io.of_fd (line 24 column 13)
251
-
Lwt_io.read_line (line 29 column 15)
252
-
Lwt_io.read (line 42 column 15)
253
-
Lwt_io.read (line 43 column 15)
254
-
Lwt_io.read (line 44 column 15)
255
-
Lwt_io.read_into (line 10 column 19)
251
+
Lwt_io.read_line (line 26 column 15)
252
+
Lwt_io.read (line 38 column 15)
253
+
Lwt_io.read (line 39 column 15)
254
+
Lwt_io.read (line 40 column 15)
255
+
Lwt_io.read_into (line 10 column 21)
256
256
Lwt_io.read_into_exactly (line 11 column 13)
257
-
Lwt_io.write (line 25 column 19)
258
-
Lwt_io.length (line 37 column 3)
259
-
Lwt_io.stdout (line 27 column 33)
260
-
Lwt_io.open_file (line 32 column 13)
261
-
Lwt_io.open_file (line 36 column 13)
257
+
Lwt_io.flush (line 41 column 15)
258
+
Lwt_io.write (line 24 column 19)
259
+
Lwt_io.length (line 34 column 3)
260
+
Lwt_io.stdout (line 25 column 33)
261
+
Lwt_io.open_file (line 29 column 13)
262
+
Lwt_io.open_file (line 33 column 13)
262
263
Lwt_unix.Timeout (line 14 column 9)
263
264
Lwt_unix.of_unix_file_descr (line 6 column 8)
264
-
Lwt_unix.stat (line 39 column 16)
265
-
Lwt_unix.lstat (line 40 column 16)
265
+
Lwt_unix.stat (line 36 column 16)
266
+
Lwt_unix.lstat (line 37 column 16)
266
267
Lwt_unix.sockaddr (line 15 column 9)
267
268
Lwt_unix.ADDR_UNIX (line 15 column 29)
268
269
Lwt_unix.ADDR_UNIX (line 17 column 6)
@@ -300,9 +301,9 @@ Make a writable directory tree:
300
301
Lwt.let* (line 163 column 21)
301
302
Lwt.Fail (line 179 column 9)
302
303
Warning:lib/test_lwt_unix.ml:3 occurrences have not been rewritten.
303
-
Lwt_io.stdout (line 27 column 33)
304
-
Lwt_io.read (line 43 column 15)
305
-
Lwt_io.read (line 44 column 15)
304
+
Lwt_io.stdout (line 25 column 33)
305
+
Lwt_io.read (line 39 column 15)
306
+
Lwt_io.read (line 40 column 15)
306
307
Warning:lib/test.mli:2 occurrences have not been rewritten.
307
308
Lwt_mutex.t (line 2 column 10)
308
309
Lwt_mutex.t (line 3 column 10)
@@ -693,7 +694,7 @@ Make a writable directory tree:
693
694
: [ `R | `Flow | `Close ] r)
694
695
in
695
696
let buf = Bytes.create 1024 in
696
-
let _n : int =
697
+
let (_n : int) =
697
698
Eio.Flow.single_read
698
699
(* TODO: lwt-to-direct-style: [buf] should be a [Cstruct.t]. *)
699
700
(* TODO: lwt-to-direct-style: [Eio.Flow.single_read] operates on a [Flow.source] but [inp] is likely of type [Eio.Buf_read.t]. Rewrite this code to use [Buf_read] (which contains an internal buffer) or change the call to [Eio.Buf_read.of_flow] used to create the buffer. *)
@@ -801,3 +802,5 @@ Make a writable directory tree:
801
802
(* TODO: lwt-to-direct-style: Eio doesn't have a direct equivalent of [Lwt_io.read~count]. Rewrite the code using [Eio.Buf_read]'s lower level API or switch to unbuffered IO. *)
802
803
(* TODO: lwt-to-direct-style: Eio doesn't have a direct equivalent of [Lwt_io.read~count]. Rewrite the code using [Eio.Buf_read]'s lower level API or switch to unbuffered IO. *)
0 commit comments