A bit more messing around.

This commit is contained in:
Caleb Gardner
2025-05-13 10:24:17 -05:00
parent b4848de95d
commit 246d63d48a
5 changed files with 67 additions and 23 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ pub const Reader = struct {
pub fn newReader(filename: []const u8) !Reader {
const file = try std.fs.cwd().openFile(filename, .{});
errdefer file.close();
const alloc = std.heap.GeneralPurposeAllocator(.{});
const alloc = std.heap.GeneralPurposeAllocator(.{}).init();
errdefer alloc.deinit();
const super = try file.reader().readStruct(Superblock);
try super.valid();