File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,10 @@ pub fn cmdEnv(arena: Allocator, args: []const []const u8) !void {
21
21
const host = try std .zig .system .resolveTargetQuery (.{});
22
22
const triple = try host .zigTriple (arena );
23
23
24
- var bw = std . io . bufferedWriter ( std . fs . File . stdout (). deprecatedWriter ()) ;
25
- const w = bw . writer ();
24
+ var buffer : [ 1024 ] u8 = undefined ;
25
+ var stdout_writer = std . fs . File . stdout (). writer (& buffer );
26
26
27
- var jws = std .json .writeStream ( w , .{ .whitespace = .indent_1 }) ;
27
+ var jws : std.json.Stringify = .{ . writer = & stdout_writer . interface , .options = . { .whitespace = .indent_1 } } ;
28
28
29
29
try jws .beginObject ();
30
30
@@ -55,7 +55,7 @@ pub fn cmdEnv(arena: Allocator, args: []const []const u8) !void {
55
55
try jws .endObject ();
56
56
57
57
try jws .endObject ();
58
- try w .writeByte ('\n ' );
59
58
60
- try bw .flush ();
59
+ try stdout_writer .interface .writeByte ('\n ' );
60
+ try stdout_writer .interface .flush ();
61
61
}
You can’t perform that action at this time.
0 commit comments