zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 511acc167f4cea39cb780ad93a36dfd0e64e4417 (tree)
parent ddb754ff2fd29298dd1b6c9f4a8619ce4f960e36
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Fri, 16 Feb 2024 19:23:41 -0700

std.http: remove format() method of Method

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

Diffstat:
Mlib/std/http.zig | 4----
1 file changed, 0 insertions(+), 4 deletions(-)

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