1
0
Fork 0
mirror of https://github.com/zigzap/zap.git synced 2025-10-21 07:34:08 +00:00

latest zig->snek_case, std.debug.TTY -> std.io.tty

This commit is contained in:
Rene Schallner 2023-05-28 00:22:37 +02:00
parent af4d62ab97
commit f5bbbff15f
2 changed files with 3 additions and 3 deletions

View file

@ -143,7 +143,7 @@ pub const SimpleRequest = struct {
try writer.print("ERROR: {any}\n\n", .{err});
var debugInfo = try std.debug.getSelfDebugInfo();
var ttyConfig: std.debug.TTY.Config = .no_color;
var ttyConfig: std.io.tty.Config = .no_color;
try std.debug.writeCurrentStackTrace(writer, debugInfo, ttyConfig, null);
try self.sendBody(string.items);
}

View file

@ -381,7 +381,7 @@ pub fn computePackageHashExcludingDirectories(
loop: while (try walker.next()) |entry| {
switch (entry.kind) {
.Directory => {
.directory => {
for (excluded_directories) |dir_name| {
if (mem.eql(u8, entry.basename, dir_name)) {
var item = walker.stack.pop();
@ -393,7 +393,7 @@ pub fn computePackageHashExcludingDirectories(
}
continue :loop;
},
.File => {},
.file => {},
else => return error.IllegalFileTypeInPackage,
}
const hashed_file = try arena.create(HashedFile);