diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-03-13 12:07:06 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-03-13 12:07:06 -0400 |
| commit | 3eff77bfb52accbc16eb831753ff4917fc2b4873 (patch) | |
| tree | 49fbf58b5b43ebaffc71eabb7aaa1eb4197044f4 /lib/std/os/uefi.zig | |
| parent | a9297f22671dff800821ff940395411f2adb8582 (diff) | |
| parent | 4905102901e7d798860f8346faeae505a7268968 (diff) | |
| download | zig-3eff77bfb52accbc16eb831753ff4917fc2b4873.tar.gz zig-3eff77bfb52accbc16eb831753ff4917fc2b4873.zip | |
Merge branch 'fengb-format-stream'
Diffstat (limited to 'lib/std/os/uefi.zig')
| -rw-r--r-- | lib/std/os/uefi.zig | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/std/os/uefi.zig b/lib/std/os/uefi.zig index 014a301962..64ee81150e 100644 --- a/lib/std/os/uefi.zig +++ b/lib/std/os/uefi.zig @@ -5,8 +5,6 @@ pub const protocols = @import("uefi/protocols.zig"); pub const Status = @import("uefi/status.zig").Status; pub const tables = @import("uefi/tables.zig"); -const fmt = @import("std").fmt; - /// The EFI image's handle that is passed to its entry point. pub var handle: Handle = undefined; @@ -29,13 +27,11 @@ pub const Guid = extern struct { pub fn format( self: @This(), comptime f: []const u8, - options: fmt.FormatOptions, - context: var, - comptime Errors: type, - comptime output: fn (@TypeOf(context), []const u8) Errors!void, + options: std.fmt.FormatOptions, + out_stream: var, ) 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}", .{ + return std.fmt.format(out_stream, "{x:0>8}-{x:0>4}-{x:0>4}-{x:0>2}{x:0>2}-{x:0>12}", .{ self.time_low, self.time_mid, self.time_high_and_version, |
