apprt/gtk: fix Zig 0.15

This commit is contained in:
Mitchell Hashimoto
2025-10-03 07:17:22 -07:00
parent e0cf528576
commit 4d97186643

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);