From 8c4031fd87c385ede55834130cb05a1ac04b07ac Mon Sep 17 00:00:00 2001 From: Clayton Voges <38054771+cvoges12@users.noreply.github.com> Date: Thu, 15 Oct 2020 23:19:19 +0000 Subject: [PATCH] replaced inStream() with reader() `inStream()` is now deprecated and deserves replacing. --- lib/std/child_process.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/std/child_process.zig b/lib/std/child_process.zig index 52e9ac99ba..335574485d 100644 --- a/lib/std/child_process.zig +++ b/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.