| ... | @@ -239,7 +239,7 @@ pub const File = extern struct { | ... | @@ -239,7 +239,7 @@ pub const File = extern struct { |
| 239 | self: *const File, | 239 | self: *const File, |
| 240 | comptime info: std.meta.Tag(Info), | 240 | comptime info: std.meta.Tag(Info), |
| 241 | buffer: []u8, | 241 | buffer: []u8, |
| 242 | ) GetInfoError!struct { usize, @FieldType(Info, @tagName(info)) } { | 242 | ) GetInfoError!*@FieldType(Info, @tagName(info)) { |
| 243 | const InfoType = @FieldType(Info, @tagName(info)); | 243 | const InfoType = @FieldType(Info, @tagName(info)); |
| 244 | | 244 | |
| 245 | var len = buffer.len; | 245 | var len = buffer.len; |
| ... | @@ -268,7 +268,7 @@ pub const File = extern struct { | ... | @@ -268,7 +268,7 @@ pub const File = extern struct { |
| 268 | | 268 | |
| 269 | const attached_str: [*:0]const u16 = switch (info) { | 269 | const attached_str: [*:0]const u16 = switch (info) { |
| 270 | .file => data.getFileName(), | 270 | .file => data.getFileName(), |
| 271 | inline .file_system, .volume_label => data.getVolumeLabel(), | 271 | .file_system, .volume_label => data.getVolumeLabel(), |
| 272 | }; | 272 | }; |
| 273 | const attached_str_len = std.mem.sliceTo(attached_str, 0).len; | 273 | const attached_str_len = std.mem.sliceTo(attached_str, 0).len; |
| 274 | | 274 | |