╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ────────╮ │src/ui/widget.zig│ ╰─────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1061 var option = try wgt.TextBox.init(allocator, value, .{ .border_style = .single, .round_corners = true, .wrap_kind = .none }); │ │1062 errdefer option.deinit(allocator); │ │1063 option.getFocus().mode = .all; │ │1064 - option.getFocus().kind = .{ .custom = try std.fmt.allocPrint(session.page_arena.allocator(), ui.radio_prefix ++ "{s}={s}", .{ name, value }) }; │ │1064 + option.getFocus().kind = .{ .custom = try session.page_arena.allocator().print(ui.radio_prefix ++ "{s}={s}", .{ name, value }) }; │ │1065 if (std.mem.eql(u8, value, initial)) box.getFocus().child_id = option.getFocus().id; │ │1066 try box.children.put(allocator, option.getFocus().id, .{ .widget = .{ .text_box = option }, .rect = null, .min_size = .{ .width = try xitui.width.displayWidth(value) + 2, .height = 3 } });│ │1067 } │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1911 switch (handle.location) { │ │1912 .repo => |identity| { │ │1913 if (session.data.git_http_port) |port| { │ │1914 - const url = try std.fmt.allocPrint(aa, "http://localhost:{d}/{s}", .{ port, identity });│ │1914 + const url = try aa.print("http://localhost:{d}/{s}", .{ port, identity }); │ │1915 choices[count] = .{ │ │1916 .selector = "http", │ │1917 .text = url, │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────╮ │1918 - .copyable_text = try std.fmt.allocPrint(aa, "git clone {s}", .{url}),│ │1918 + .copyable_text = try aa.print("git clone {s}", .{url}), │ │1919 .label = " clone ", │ │1920 }; │ │1921 count += 1; │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1922 } │ │1923 if (session.data.git_ssh_port) |port| { │ │1924 ssh_index = count; │ │1925 - const url = try std.fmt.allocPrint(aa, "ssh://localhost:{d}/{s}", .{ port, identity });│ │1925 + const url = try aa.print("ssh://localhost:{d}/{s}", .{ port, identity }); │ │1926 choices[count] = .{ │ │1927 .selector = "ssh", │ │1928 .text = url, │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1929 - .copyable_text = try std.fmt.allocPrint(aa, "{s}git clone {s}", .{ session.data.git_ssh_prefix, url }),│ │1929 + .copyable_text = try aa.print("{s}git clone {s}", .{ session.data.git_ssh_prefix, url }), │ │1930 .label = " clone ", │ │1931 }; │ │1932 count += 1; │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1933 } │ │1934 }, │ │1935 .fork => |f| if (session.data.git_ssh_port) |port| { │ │1936 - const url = try std.fmt.allocPrint(aa, "ssh://localhost:{d}/{s}+{s}", .{ port, f.identity, f.id }); │ │1936 + const url = try aa.print("ssh://localhost:{d}/{s}+{s}", .{ port, f.identity, f.id }); │ │1937 choices[count] = .{ │ │1938 .text = url, │ │1939 - .copyable_text = try std.fmt.allocPrint(aa, "{s}git clone {s}", .{ session.data.git_ssh_prefix, url }),│ │1939 + .copyable_text = try aa.print("{s}git clone {s}", .{ session.data.git_ssh_prefix, url }), │ │1940 .label = " clone ", │ │1941 }; │ │1942 count += 1; │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ───────────────╮ │src/ui/widget/thread.zig│ ╰────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │122 │ │123 fn revisionSummary(allocator: std.mem.Allocator, revision_maybe: ?evt.Patch.Revision) ![]const u8 { │ │124 const revision = revision_maybe orelse return "(none)"; │ │125 - return std.fmt.allocPrint(allocator, "squash {s}\nsource {s}", .{ revision.squash_oid, revision.source_oid });│ │125 + return allocator.print("squash {s}\nsource {s}", .{ revision.squash_oid, revision.source_oid }); │ │126 } │ │127 │ │128 fn readFieldOid( │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────╮ │198 const key = try pair.key_cursor.readBytesAlloc(aa, null); │ │199 const space = std.mem.indexOfScalar(u8, key, ' ') orelse continue;│ │200 const label = key[0..space]; │ │201 - if (labels.getLastOrNull()) |last| { │ │201 + if (labels.last()) |last| { │ │202 if (std.mem.eql(u8, last, label)) continue; │ │203 } │ │204 try labels.append(aa, label); │ ╰───────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────╮ │645 │ │646 fn entryStatus(entry: Entry) Status { │ │647 if (comptime has_status) return Data.statusKind(entry.record.event);│ │648 - return @enumFromInt(0); │ │648 + return @fromBackingInt(@intCast(0)); │ │649 } │ │650 │ │651 fn entryDraft(entry: Entry) bool { │ ╰─────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │695 fn listLink(page_arena: *std.heap.ArenaAllocator, identity: []const u8, status: Status, label: []const u8, id: []const u8, search: []const u8) ![]const u8 {│ │696 var route = listRoute(identity, status, label, id) orelse return error.RouteTooLong; │ │697 if (search.len != 0) route = route.withSearch(search) orelse return error.RouteTooLong; │ │698 - return std.fmt.allocPrint(page_arena.allocator(), "a:{s}", .{try route.toUrl(page_arena)}); │ │698 + return page_arena.allocator().print("a:{s}", .{try route.toUrl(page_arena)}); │ │699 } │ │700 │ │701 fn labelLink(page_arena: *std.heap.ArenaAllocator, identity: []const u8, status: Status, label: []const u8, search: []const u8) ![]const u8 { │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯