std.os.uefi: fix type error at MemoryType.format()

This commit is contained in:
tokyo4j
2025-08-28 00:11:56 +09:00
committed by Alex Rønne Petersen
parent 1231c8fbbd
commit cb9821a827

View File

@@ -90,7 +90,7 @@ pub const MemoryType = enum(u32) {
return @truncate(as_int - vendor_start);
}
pub fn format(self: MemoryType, w: *std.io.Writer) std.io.WriteError!void {
pub fn format(self: MemoryType, w: *std.io.Writer) std.io.Writer.Error!void {
if (self.toOem()) |oemval|
try w.print("OEM({X})", .{oemval})
else if (self.toVendor()) |vendorval|