mirror of
https://github.com/jetzig-framework/jetzig.git
synced 2025-05-14 14:06:08 +00:00
parent
b32d24ad80
commit
13907aad7c
@ -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");
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user