update format function for new std fmt changes

master
Andrew Kelley 2019-06-27 14:06:29 -04:00
parent ba29435f67
commit 39112d9052
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9
1 changed files with 8 additions and 1 deletions

View File

@ -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);