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 Linus Groh
parent 417c68d249
commit 151c7dc74b

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|