authorgravatar for squeek502@hotmail.comRyan Liptak <squeek502@hotmail.com> 2020-04-03 00:46:16-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-04-03 12:12:23-04:00
log08a9ab4d8c7f1baeb6169088284c06fb2b9707ce
tree980667d5a37c6eba7c445963afb6caa2f893ea84
parent0dbf8aaab83d7387568d6387c6cbd263e04c7397

Update all remaining uses of &outStream().stream


4 files changed, 4 insertions(+), 6 deletions(-)

lib/std/hash/benchmark.zig+1-3
......@@ -172,9 +172,7 @@ fn mode(comptime x: comptime_int) comptime_int {
172172}
173173
174174pub fn main() !void {
175 var stdout_file = std.io.getStdOut();
176 var stdout_out_stream = stdout_file.outStream();
177 const stdout = &stdout_out_stream.stream;
175 const stdout = std.io.getStdOut().outStream();
178176
179177 var buffer: [1024]u8 = undefined;
180178 var fixed = std.heap.FixedBufferAllocator.init(buffer[0..]);
lib/std/unicode/throughput_test.zig+1-1
......@@ -2,7 +2,7 @@ const builtin = @import("builtin");
22const std = @import("std");
33
44pub fn main() !void {
5 const stdout = &std.io.getStdOut().outStream().stream;
5 const stdout = std.io.getStdOut().outStream();
66
77 const args = try std.process.argsAlloc(std.heap.page_allocator);
88
lib/std/zig/perf_test.zig+1-1
......@@ -24,7 +24,7 @@ pub fn main() !void {
2424 const mb_per_sec = bytes_per_sec / (1024 * 1024);
2525
2626 var stdout_file = std.io.getStdOut();
27 const stdout = &stdout_file.outStream().stream;
27 const stdout = stdout_file.outStream();
2828 try stdout.print("{:.3} MiB/s, {} KiB used \n", .{ mb_per_sec, memory_used / 1024 });
2929}
3030
tools/merge_anal_dumps.zig+1-1
......@@ -23,7 +23,7 @@ pub fn main() anyerror!void {
2323 }
2424
2525 const stdout = try std.io.getStdOut();
26 try dump.render(&stdout.outStream().stream);
26 try dump.render(stdout.outStream());
2727}
2828
2929/// AST source node