Use Alignment arg instead of integer

See f32a5d349d
This commit is contained in:
Bob Farrell 2025-04-16 19:59:05 +01:00
parent b32d24ad80
commit 13907aad7c
2 changed files with 2 additions and 2 deletions

View File

@ -447,7 +447,7 @@ fn generateMarkdownFragments(b: *std.Build) ![]const u8 {
} }
}; };
const stat = try file.stat(); const stat = try file.stat();
const source = try file.readToEndAllocOptions(b.allocator, @intCast(stat.size), null, @alignOf(u8), 0); const source = try file.readToEndAllocOptions(b.allocator, @intCast(stat.size), null, .of(u8), 0);
if (try getMarkdownFragmentsSource(b.allocator, source)) |markdown_fragments_source| { if (try getMarkdownFragmentsSource(b.allocator, source)) |markdown_fragments_source| {
return try std.fmt.allocPrint(b.allocator, return try std.fmt.allocPrint(b.allocator,
\\const std = @import("std"); \\const std = @import("std");

View File

@ -376,7 +376,7 @@ fn generateRoutesForView(self: *Routes, dir: std.fs.Dir, path: []const u8) !Rout
path, path,
@intCast(stat.size), @intCast(stat.size),
null, null,
@alignOf(u8), .of(u8),
0, 0,
); );
defer self.allocator.free(source); defer self.allocator.free(source);