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:
parent
af4d62ab97
commit
f5bbbff15f
2 changed files with 3 additions and 3 deletions
|
@ -143,7 +143,7 @@ pub const SimpleRequest = struct {
|
||||||
try writer.print("ERROR: {any}\n\n", .{err});
|
try writer.print("ERROR: {any}\n\n", .{err});
|
||||||
|
|
||||||
var debugInfo = try std.debug.getSelfDebugInfo();
|
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 std.debug.writeCurrentStackTrace(writer, debugInfo, ttyConfig, null);
|
||||||
try self.sendBody(string.items);
|
try self.sendBody(string.items);
|
||||||
}
|
}
|
||||||
|
|
|
@ -381,7 +381,7 @@ pub fn computePackageHashExcludingDirectories(
|
||||||
|
|
||||||
loop: while (try walker.next()) |entry| {
|
loop: while (try walker.next()) |entry| {
|
||||||
switch (entry.kind) {
|
switch (entry.kind) {
|
||||||
.Directory => {
|
.directory => {
|
||||||
for (excluded_directories) |dir_name| {
|
for (excluded_directories) |dir_name| {
|
||||||
if (mem.eql(u8, entry.basename, dir_name)) {
|
if (mem.eql(u8, entry.basename, dir_name)) {
|
||||||
var item = walker.stack.pop();
|
var item = walker.stack.pop();
|
||||||
|
@ -393,7 +393,7 @@ pub fn computePackageHashExcludingDirectories(
|
||||||
}
|
}
|
||||||
continue :loop;
|
continue :loop;
|
||||||
},
|
},
|
||||||
.File => {},
|
.file => {},
|
||||||
else => return error.IllegalFileTypeInPackage,
|
else => return error.IllegalFileTypeInPackage,
|
||||||
}
|
}
|
||||||
const hashed_file = try arena.create(HashedFile);
|
const hashed_file = try arena.create(HashedFile);
|
||||||
|
|
Loading…
Add table
Reference in a new issue