replaced inStream() with reader()

`inStream()` is now deprecated and deserves replacing.
This commit is contained in:
Clayton Voges 2020-10-15 23:19:19 +00:00 committed by Andrew Kelley
parent f3667e8a80
commit 8c4031fd87

View File

@ -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.