╭ changed ─────────────╮ │src/ui/Repo/Header.zig│ ╰──────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │81 const bottom_label = try ui.clippedBottomLabel(try aa.alloc(u8, ui.clipped_bottom_label_max_len), ref_name); │ │82 const changes_label = switch (page.changes) { │ │83 .diff => diff_tab_label, │ │84 - .commits => |c| if (c.commit_count) |count| try std.fmt.allocPrint(aa, commits_tab_label ++ " ({d})", .{count}) else commits_tab_label,│ │84 + .commits => |c| if (c.commit_count) |count| try aa.print(commits_tab_label ++ " ({d})", .{count}) else commits_tab_label, │ │85 }; │ │86 const changes_label_width = try xitui.width.displayWidth(changes_label); │ │87 var first_group_width = try data.title.width(); │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │92 if (session.data.host_kind == .server) { │ │93 var text_buf: [evt.User.name_max_len + 1]u8 = undefined; │ │94 const text = try std.fmt.bufPrint(&text_buf, "{s}/", .{data.owner_name}); │ │95 - const link = try std.fmt.allocPrint(aa, "a:/{s}", .{data.owner_name}); │ │95 + const link = try aa.print("a:/{s}", .{data.owner_name}); │ │96 │ │97 var text_box = try wgt.TextBox.init(allocator, text, .{ .border_style = .hidden, .wrap_kind = .none });│ │98 errdefer text_box.deinit(allocator); │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │107 } │ │108 │ │109 // local routes carry no identity, so their urls come out elided │ │110 - const identity = if (session.data.host_kind == .local) "" else try std.fmt.allocPrint(aa, "{s}:{s}", .{ data.owner_name, data.name });│ │110 + const identity = if (session.data.host_kind == .local) "" else try aa.print("{s}:{s}", .{ data.owner_name, data.name }); │ │111 │ │112 // title links to the repo's files root (the bare route, so it resolves │ │113 // to the default branch). │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │114 { │ │115 const files_root_route = ui.RoutablePage.repoFilesRoute(identity, null, "", "", 0) orelse return error.RouteTooLong;│ │116 - const title_link = try std.fmt.allocPrint(aa, "a:{s}", .{try files_root_route.toUrl(session.page_arena)}); │ │116 + const title_link = try aa.print("a:{s}", .{try files_root_route.toUrl(session.page_arena)}); │ │117 var title_view = try ui.Title.View.init(allocator, &data.title); │ │118 errdefer title_view.deinit(allocator); │ │119 title_view.getFocus().mode = .all; │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯