authorgravatar for n@nirf.deNick Erdmann <n@nirf.de> 2020-03-09 20:24:21+01:00
committergravatar for n@nirf.deNick Erdmann <n@nirf.de> 2020-03-12 23:22:08+01:00
loge617e8a7981119d1b2d3593b14c1a06dde5f1c43
treeb618a605cca1b9c9b71471d94a6e411352cab1d2
parent7c12f93734b17408e8a334b8a6df284966809804

std/os/uefi: require guid output function be comptime


1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/os/uefi.zig+1-1
...@@ -32,7 +32,7 @@ pub const Guid = extern struct {...@@ -32,7 +32,7 @@ pub const Guid = extern struct {
32 options: fmt.FormatOptions,32 options: fmt.FormatOptions,
33 context: var,33 context: var,
34 comptime Errors: type,34 comptime Errors: type,
35 output: fn (@TypeOf(context), []const u8) Errors!void,35 comptime output: fn (@TypeOf(context), []const u8) Errors!void,
36 ) Errors!void {36 ) Errors!void {
37 if (f.len == 0) {37 if (f.len == 0) {
38 return fmt.format(context, Errors, output, "{x:0>8}-{x:0>4}-{x:0>4}-{x:0>2}{x:0>2}-{x:0>12}", .{38 return fmt.format(context, Errors, output, "{x:0>8}-{x:0>4}-{x:0>4}-{x:0>2}{x:0>2}-{x:0>12}", .{