commit 84c9cee502ff71a432fa65ff5c63fac95cb1c47e (tree)
parent 65c943671e409422e187b25f33a8f898ef5c676e
Author: Carmen <carmen@dotcarmen.dev>
Date: Thu, 3 Apr 2025 19:48:16 +0200
fix review
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/std/os/uefi/protocol/file.zig b/lib/std/os/uefi/protocol/file.zig
@@ -239,7 +239,7 @@ pub const File = extern struct {
self: *const File,
comptime info: std.meta.Tag(Info),
buffer: []u8,
- ) GetInfoError!struct { usize, @FieldType(Info, @tagName(info)) } {
+ ) GetInfoError!*@FieldType(Info, @tagName(info)) {
const InfoType = @FieldType(Info, @tagName(info));
var len = buffer.len;
@@ -268,7 +268,7 @@ pub const File = extern struct {
const attached_str: [*:0]const u16 = switch (info) {
.file => data.getFileName(),
- inline .file_system, .volume_label => data.getVolumeLabel(),
+ .file_system, .volume_label => data.getVolumeLabel(),
};
const attached_str_len = std.mem.sliceTo(attached_str, 0).len;