From 39112d9052fd93210d4a4164adb7b9c93ad1623d Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 27 Jun 2019 14:06:29 -0400 Subject: [PATCH] update format function for new std fmt changes --- std/http/headers.zig | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/std/http/headers.zig b/std/http/headers.zig index 6812d3ceed..b9073295a1 100644 --- a/std/http/headers.zig +++ b/std/http/headers.zig @@ -357,7 +357,14 @@ pub const Headers = struct { self.rebuild_index(); } - pub fn format(self: Self, comptime fmt: []const u8, context: var, comptime Errors: type, output: fn (@typeOf(context), []const u8) Errors!void) Errors!void { + pub fn format( + self: Self, + comptime fmt: []const u8, + options: std.fmt.FormatOptions, + context: var, + comptime Errors: type, + output: fn (@typeOf(context), []const u8) Errors!void, + ) Errors!void { var it = self.iterator(); while (it.next()) |entry| { try output(context, entry.name);