apprt/gtk: fix Zig 0.15

pull/9010/head
Mitchell Hashimoto 2025-10-03 07:17:22 -07:00
parent e0cf528576
commit 4d97186643
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
1 changed files with 4 additions and 2 deletions

View File

@ -850,15 +850,17 @@ pub const Surface = extern struct {
};
const title = std.mem.span(title_);
const body = body: {
const exit_code = value.exit_code orelse break :body std.fmt.allocPrintZ(
const exit_code = value.exit_code orelse break :body std.fmt.allocPrintSentinel(
alloc,
"Command took {}.",
.{value.duration.round(std.time.ns_per_ms)},
0,
) catch break :notify;
break :body std.fmt.allocPrintZ(
break :body std.fmt.allocPrintSentinel(
alloc,
"Command took {} and exited with code {d}.",
.{ value.duration.round(std.time.ns_per_ms), exit_code },
0,
) catch break :notify;
};
defer alloc.free(body);