diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-03-13 11:31:11 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-03-13 11:31:11 -0400 |
| commit | 2dd920ee394d06b4a215720b6bf7f355dacfd96f (patch) | |
| tree | 2824dec01eff04baacb30d724fdb8bb00ed14c0a /lib/std/os | |
| parent | a9297f22671dff800821ff940395411f2adb8582 (diff) | |
| parent | 4aae55b4ccf44fa3c2c2a81a6a34f3c898dece30 (diff) | |
| download | zig-2dd920ee394d06b4a215720b6bf7f355dacfd96f.tar.gz zig-2dd920ee394d06b4a215720b6bf7f355dacfd96f.zip | |
Merge branch 'format-stream' of https://github.com/fengb/zig into fengb-format-stream
Diffstat (limited to 'lib/std/os')
| -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, |
