authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-03-04 03:57:44 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-03-04 03:57:44 -08:00
log9bfb8b5d623aed32d903e4f8a3fb5252d6b17f41
tree8d880265513a62efe111fa6668834c0f6049ecf8
parent79815fd977854c990c513cd9d5d1d618fa259fd9
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

make Status exhaustive


1 files changed, 1 insertions(+), 5 deletions(-)

http.zig+1-5
......@@ -85,9 +85,7 @@ pub const Status = enum(u10) {
8585 not_extended = 510, // RFC2774
8686 network_authentication_required = 511, // RFC6585
8787
88 _,
89
90 pub fn phrase(self: Status) ?[]const u8 {
88 pub fn phrase(self: Status) []const u8 {
9189 return switch (self) {
9290 // 1xx statuses
9391 .@"continue" => "Continue",
......@@ -160,8 +158,6 @@ pub const Status = enum(u10) {
160158 .loop_detected => "Loop Detected",
161159 .not_extended => "Not Extended",
162160 .network_authentication_required => "Network Authentication Required",
163
164 else => return null,
165161 };
166162 }
167163};