╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ──╮ │src/web.zig│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────╮ │651 } } }); │ │652 }; │ │653 │ │654 - const location = try std.fmt.allocPrint(allocator, "/{s}:{s}", .{ user.event.name, name });│ │654 + const location = try allocator.print("/{s}:{s}", .{ user.event.name, name }); │ │655 defer allocator.free(location); │ │656 try request.respond("", .{ │ │657 .status = .see_other, │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────╮ │749 const token = try session_store.create(&user_id); │ │750 var cookie_buf: [256]u8 = undefined; │ │751 const cookie = try std.fmt.bufPrint(&cookie_buf, session_cookie_fmt, .{token});│ │752 - const location = try std.fmt.allocPrint(allocator, "/{s}", .{name}); │ │752 + const location = try allocator.print("/{s}", .{name}); │ │753 defer allocator.free(location); │ │754 try request.respond("", .{ │ │755 .status = .see_other, │ ╰────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │805 .discuss => "discussions", │ │806 else => unreachable, │ │807 }; │ │808 - const form_location = try std.fmt.allocPrint(allocator, "{s}/{s}/new", .{ base, list_name }); │ │808 + const form_location = try allocator.print("{s}/{s}/new", .{ base, list_name }); │ │809 defer allocator.free(form_location); │ │810 if (!evt.titleValid(title)) { │ │811 return respondThreadFormFailure(request, allocator, host, form_location, requiredTitleFeedback(kind, title, labels, description, target_branch, source_branch));│ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │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, │ ╰──────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯