╭ changed ─────────────────╮ │src/ui/Repo/Attachment.zig│ ╰──────────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │62 }); │ │63 errdefer tb.deinit(allocator); │ │64 tb.getFocus().mode = .all; │ │65 - tb.getFocus().kind = .{ .custom = try std.fmt.allocPrint(pa, "{s}{s}", .{ ui.raw_link_prefix, try url(session.page_arena, identity, &entry.id) }) };│ │65 + tb.getFocus().kind = .{ .custom = try pa.print("{s}{s}", .{ ui.raw_link_prefix, try url(session.page_arena, identity, &entry.id) }) }; │ │66 try row.children.put(allocator, tb.getFocus().id, .{ .widget = .{ .text_box = tb }, .rect = null, .min_size = null }); │ │67 │ │68 - row.getFocus().kind = .{ .custom = try std.fmt.allocPrint(pa, "form:{s}/attachment:{s}/remove", .{ parent_url, &entry.id }) }; │ │68 + row.getFocus().kind = .{ .custom = try pa.print("form:{s}/attachment:{s}/remove", .{ parent_url, &entry.id }) }; │ │69 var remove = try wgt.TextBox.init(allocator, "✕", .{ .border_style = .single, .round_corners = true, .wrap_kind = .none }); │ │70 errdefer remove.deinit(allocator); │ │71 remove.getFocus().mode = .all; │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ 98 // the url an attachment's bytes are served from │ │ 99 pub fn url(page_arena: *std.heap.ArenaAllocator, identity: []const u8, id: []const u8) ![]const u8 {│ │100 return if (identity.len == 0) │ │101 - try std.fmt.allocPrint(page_arena.allocator(), "/attachment:{s}", .{id}) │ │101 + try page_arena.allocator().print("/attachment:{s}", .{id}) │ │102 else │ │103 - try std.fmt.allocPrint(page_arena.allocator(), "/{s}/attachment:{s}", .{ identity, id }); │ │103 + try page_arena.allocator().print("/{s}/attachment:{s}", .{ identity, id }); │ │104 } │ │105 │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯