╭ changed ───────────────╮ │src/test/event/patch.zig│ ╰────────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │45 try repo.add(io, allocator, &.{"base.txt"}); │ │46 const base = try repo.commit(io, allocator, .{ .message = "base" }); │ │47 try repo.addBranch(io, .{ .name = "feature" }); │ │48 - const id = [_]u8{7} ** evt.event_id_size; │ │48 + const id: [evt.event_id_size]u8 = @splat(7); │ │49 const patch = evt.Patch{ .title = "branch patch", .labels = "feature", .description = "existing branch", .source_branch = "feature", .target_branch = "master" };│ │50 │ │51 // the same branch cannot be both source and target │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │182 var restored = try repo.switchDir(io, allocator, .{ .target = .{ .ref = .{ .kind = .head, .name = "master" } } });│ │183 defer restored.deinit(); │ │184 } │ │185 - const id = [_]u8{9} ** evt.event_id_size; │ │185 + const id: [evt.event_id_size]u8 = @splat(9); │ │186 const id_hex = std.fmt.bytesToHex(id, .lower); │ │187 const before_new = try repo.core.db.rootCursor().count(); │ │188 try pch.writeBranchPatch(.{ .server = .{ .users_dir = path } }, .xit, opts, io, allocator, &repo, id_hex, .{ │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────╮ │374 const temp_path = try temp.dir.realPathFileAlloc(io, ".", allocator); │ │375 defer allocator.free(temp_path); │ │376 │ │377 - const upstream_path = try std.fs.path.join(allocator, &.{ temp_path, "upstream" }); │ │377 + const upstream_path = try std.Io.Dir.path.join(allocator, &.{ temp_path, "upstream" });│ │378 defer allocator.free(upstream_path); │ │379 - const target_path = try std.fs.path.join(allocator, &.{ temp_path, "target" }); │ │379 + const target_path = try std.Io.Dir.path.join(allocator, &.{ temp_path, "target" }); │ │380 defer allocator.free(target_path); │ │381 - const source_path = try std.fs.path.join(allocator, &.{ temp_path, "source" }); │ │381 + const source_path = try std.Io.Dir.path.join(allocator, &.{ temp_path, "source" }); │ │382 defer allocator.free(source_path); │ │383 │ │384 // │ ╰────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────╮ │813 const temp_path = try temp.dir.realPathFileAlloc(io, ".", allocator); │ │814 defer allocator.free(temp_path); │ │815 │ │816 - const users_dir = try std.fs.path.join(allocator, &.{ temp_path, "users" }); │ │816 + const users_dir = try std.Io.Dir.path.join(allocator, &.{ temp_path, "users" }); │ │817 defer allocator.free(users_dir); │ │818 - const admin_path = try std.fs.path.join(allocator, &.{ temp_path, "admin" }); │ │818 + const admin_path = try std.Io.Dir.path.join(allocator, &.{ temp_path, "admin" }); │ │819 defer allocator.free(admin_path); │ │820 - const upstream_path = try std.fs.path.join(allocator, &.{ temp_path, "upstream" }); │ │820 + const upstream_path = try std.Io.Dir.path.join(allocator, &.{ temp_path, "upstream" });│ │821 defer allocator.free(upstream_path); │ │822 - const source_path = try std.fs.path.join(allocator, &.{ temp_path, "source" }); │ │822 + const source_path = try std.Io.Dir.path.join(allocator, &.{ temp_path, "source" }); │ │823 defer allocator.free(source_path); │ │824 │ │825 var prng = std.Random.DefaultPrng.init(std.testing.random_seed); │ ╰────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────╮ │1269 // a missing fork disables merging without changing the accepted events │ │1270 const draft_path = try fork.forkPath(allocator, users_dir, forker_id, id); │ │1271 defer allocator.free(draft_path); │ │1272 - const away_path = try std.fmt.allocPrint(allocator, "{s}.away", .{draft_path});│ │1272 + const away_path = try allocator.print("{s}.away", .{draft_path}); │ │1273 defer allocator.free(away_path); │ │1274 { │ │1275 try std.Io.Dir.renameAbsolute(draft_path, away_path, io); │ ╰─────────────────────────────────────────────────────────────────────────────────────────╯