std.os.uefi: fix type error at MemoryType.format()
This commit is contained in:
committed by
Alex Rønne Petersen
parent
1231c8fbbd
commit
cb9821a827
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user