authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-02-16 19:23:41-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-02-23 02:37:11-07:00
log511acc167f4cea39cb780ad93a36dfd0e64e4417
treec8b7912867c8531027420769478343250ead525c
parentddb754ff2fd29298dd1b6c9f4a8619ce4f960e36

std.http: remove format() method of Method

I don't like this mechanism in general, and it is unused by the standard library.

1 files changed, 0 insertions(+), 4 deletions(-)

lib/std/http.zig-4
......@@ -42,10 +42,6 @@ pub const Method = enum(u64) {
4242 try w.writeAll(str);
4343 }
4444
45 pub fn format(value: Method, comptime _: []const u8, _: std.fmt.FormatOptions, writer: anytype) @TypeOf(writer).Error!void {
46 return try value.write(writer);
47 }
48
4945 /// Returns true if a request of this method is allowed to have a body
5046 /// Actual behavior from servers may vary and should still be checked
5147 pub fn requestHasBody(self: Method) bool {