update zig

This commit is contained in:
Mitchell Hashimoto
2024-03-27 21:05:06 -07:00
parent 06c5528a59
commit 5845281e30
3 changed files with 7 additions and 5 deletions

6
flake.lock generated
View File

@ -194,11 +194,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1711109355, "lastModified": 1711585351,
"narHash": "sha256-VZPO5mq2di5yjHkkY9ZGEIZaX7EtdusSkxICBAtHAec=", "narHash": "sha256-rVJ/lRPQNCjU/98SZmQUhksoZOrKajwGS1UmEMuXzss=",
"owner": "mitchellh", "owner": "mitchellh",
"repo": "zig-overlay", "repo": "zig-overlay",
"rev": "5fe52bdf2c213e47712d93c9ce12dfed4c4cef86", "rev": "6ac62029cf9a5fd2cec831a2dfc541f3cae63297",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -19,7 +19,8 @@ fn comptimeGenerateFishCompletions() []const u8 {
var buf: [counter.bytes_written]u8 = undefined; var buf: [counter.bytes_written]u8 = undefined;
var stream = std.io.fixedBufferStream(&buf); var stream = std.io.fixedBufferStream(&buf);
try writeFishCompletions(stream.writer()); try writeFishCompletions(stream.writer());
return stream.getWritten(); const final = buf;
return final[0..stream.getWritten().len];
} }
} }

View File

@ -35,7 +35,8 @@ fn comptimeGenSyntax() []const u8 {
var buf: [counting_writer.bytes_written]u8 = undefined; var buf: [counting_writer.bytes_written]u8 = undefined;
var stream = std.io.fixedBufferStream(&buf); var stream = std.io.fixedBufferStream(&buf);
try writeSyntax(stream.writer()); try writeSyntax(stream.writer());
return stream.getWritten(); const final = buf;
return final[0..stream.getWritten().len];
} }
} }