Commit 8c4031fd87

Clayton Voges <38054771+cvoges12@users.noreply.github.com>
2020-10-16 01:19:19
replaced inStream() with reader()
`inStream()` is now deprecated and deserves replacing.
1 parent f3667e8
Changed files (1)
lib/std/child_process.zig
@@ -210,8 +210,8 @@ pub const ChildProcess = struct {
 
         try child.spawn();
 
-        const stdout_in = child.stdout.?.inStream();
-        const stderr_in = child.stderr.?.inStream();
+        const stdout_in = child.stdout.?.reader();
+        const stderr_in = child.stderr.?.reader();
 
         // TODO https://github.com/ziglang/zig/issues/6343
         const stdout = try stdout_in.readAllAlloc(args.allocator, args.max_output_bytes);
@@ -843,7 +843,7 @@ fn readIntFd(fd: i32) !ErrInt {
         .capable_io_mode = .blocking,
         .intended_io_mode = .blocking,
     };
-    return @intCast(ErrInt, file.inStream().readIntNative(u64) catch return error.SystemResources);
+    return @intCast(ErrInt, file.reader().readIntNative(u64) catch return error.SystemResources);
 }
 
 /// Caller must free result.