╭ changed ──╮ │src/web.zig│ ╰───────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────╮ │← previous│ ╰──────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │838 }; │ │839 const user_id = actor.user_id orelse return respondLoginRequired(request); │ │840 if (!evt.Patch.branchValid(target_branch) or !try request_repo.source.hasBranch(io, allocator, target_branch)) { │ │841 - const form_location = try std.fmt.allocPrint(allocator, "{s}/patches/new", .{base}); │ │841 + const form_location = try allocator.print("{s}/patches/new", .{base}); │ │842 defer allocator.free(form_location); │ │843 return respondThreadFormFailure(request, allocator, host, form_location, patchFeedback(.invalid_target_branch, title, labels, description, target_branch, null));│ │844 } │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │845 - const repo_id = evt.parseEventId(std.fs.path.basename(request_repo.source.path)) catch return respondRemoveNotFound(request); │ │845 + const repo_id = evt.parseEventId(std.Io.Dir.path.basename(request_repo.source.path)) catch return respondRemoveNotFound(request);│ │846 const repo_user_id = actor.repo_user_id orelse unreachable; │ │847 const fork_path = try fork.create(.{}, io, allocator, server.users_dir, .{ │ │848 .id = event_id_hex, │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │883 result catch |err| { │ │884 if (kind != .patch) return err; │ │885 const failure = ui.Session.FormFeedback.PatchFailure.fromError(err) orelse return err; │ │886 - const form_location = try std.fmt.allocPrint(allocator, "{s}/patches/new", .{base}); │ │886 + const form_location = try allocator.print("{s}/patches/new", .{base}); │ │887 defer allocator.free(form_location); │ │888 return respondThreadFormFailure(request, allocator, host, form_location, patchFeedback(failure, title, labels, description, target_branch, source_branch));│ │889 }; │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │893 } │ │894 } │ │895 │ │896 - const location = try std.fmt.allocPrint(allocator, "{s}/{s}:{s}", .{ base, @tagName(kind), &event_id_hex });│ │896 + const location = try allocator.print("{s}/{s}:{s}", .{ base, @tagName(kind), &event_id_hex }); │ │897 defer allocator.free(location); │ │898 try request.respond("", .{ │ │899 .status = .see_other, │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │944 │ │945 const request_repo = (try requestRepoSource(io, allocator, host, parts.repo_base)) orelse return respondRemoveNotFound(request); │ │946 defer request_repo.deinit(allocator); │ │947 - const repo_id = evt.parseEventId(std.fs.path.basename(request_repo.source.path)) catch return respondRemoveNotFound(request); │ │947 + const repo_id = evt.parseEventId(std.Io.Dir.path.basename(request_repo.source.path)) catch return respondRemoveNotFound(request);│ │948 var target_repo = try rp.AnyRepo(.xit, .{}).open(io, allocator, request_repo.source.localInitOpts()); │ │949 defer target_repo.deinit(io, allocator); │ │950 var admin_repo = try rp.Repo(.xit, evt.admin_repo_opts).open(io, allocator, .{ .path = server.admin_repo_path }); │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1007 else => return err, │ │1008 }; │ │1009 │ │1010 - const location = try std.fmt.allocPrint(allocator, "{s}/patch:{s}", .{ parts.repo_base, &id });│ │1010 + const location = try allocator.print("{s}/patch:{s}", .{ parts.repo_base, &id }); │ │1011 defer allocator.free(location); │ │1012 try request.respond("", .{ │ │1013 .status = .see_other, │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────╮ │1045 defer allocator.free(body); │ │1046 │ │1047 if (!evt.Comment.fieldsValid(body)) { │ │1048 - const form_location = try std.fmt.allocPrint(allocator, "{s}/new", .{base});│ │1048 + const form_location = try allocator.print("{s}/new", .{base}); │ │1049 defer allocator.free(form_location); │ │1050 try request.respond("", .{ │ │1051 .status = .see_other, │ ╰──────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1077 }, │ │1078 } │ │1079 │ │1080 - const location = try std.fmt.allocPrint(allocator, "{s}/{s}:{s}/comment:{s}", .{ parts.repo_base, @tagName(parts.thread_kind), &thread_id_hex, &event_id_hex });│ │1080 + const location = try allocator.print("{s}/{s}:{s}/comment:{s}", .{ parts.repo_base, @tagName(parts.thread_kind), &thread_id_hex, &event_id_hex }); │ │1081 defer allocator.free(location); │ │1082 try request.respond("", .{ │ │1083 .status = .see_other, │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1158 const content_type = attachmentContentType(record.name); │ │1159 const encoded_name = try ui.urlEncodeRef(allocator, record.name); │ │1160 defer allocator.free(encoded_name); │ │1161 - const disposition = try std.fmt.allocPrint(allocator, "{s}; filename*=UTF-8''{s}", .{ if (content_type == null) "attachment" else "inline", encoded_name });│ │1161 + const disposition = try allocator.print("{s}; filename*=UTF-8''{s}", .{ if (content_type == null) "attachment" else "inline", encoded_name }); │ │1162 defer allocator.free(disposition); │ │1163 │ │1164 var send_buf: [8192]u8 = undefined; │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────╮ │1370 defer allocator.free(body); │ │1371 │ │1372 if (!evt.Comment.fieldsValid(body)) { │ │1373 - const form_location = try std.fmt.allocPrint(allocator, "{s}/edit", .{base});│ │1373 + const form_location = try allocator.print("{s}/edit", .{base}); │ │1374 defer allocator.free(form_location); │ │1375 try request.respond("", .{ │ │1376 .status = .see_other, │ ╰───────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯