commit e617e8a7981119d1b2d3593b14c1a06dde5f1c43 (tree)
parent 7c12f93734b17408e8a334b8a6df284966809804
Author: Nick Erdmann <n@nirf.de>
Date: Mon, 9 Mar 2020 20:24:21 +0100
std/os/uefi: require guid output function be comptime
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/std/os/uefi.zig b/lib/std/os/uefi.zig
@@ -32,7 +32,7 @@ pub const Guid = extern struct {
options: fmt.FormatOptions,
context: var,
comptime Errors: type,
- output: fn (@TypeOf(context), []const u8) Errors!void,
+ comptime output: fn (@TypeOf(context), []const u8) Errors!void,
) Errors!void {
if (f.len == 0) {
return fmt.format(context, Errors, output, "{x:0>8}-{x:0>4}-{x:0>4}-{x:0>2}{x:0>2}-{x:0>12}", .{