| ... | @@ -85,9 +85,7 @@ pub const Status = enum(u10) { | ... | @@ -85,9 +85,7 @@ pub const Status = enum(u10) { |
| 85 | not_extended = 510, // RFC2774 | 85 | not_extended = 510, // RFC2774 |
| 86 | network_authentication_required = 511, // RFC6585 | 86 | network_authentication_required = 511, // RFC6585 |
| 87 | | 87 | |
| 88 | _, | 88 | pub fn phrase(self: Status) []const u8 { |
| 89 | | | |
| 90 | pub fn phrase(self: Status) ?[]const u8 { | | |
| 91 | return switch (self) { | 89 | return switch (self) { |
| 92 | // 1xx statuses | 90 | // 1xx statuses |
| 93 | .@"continue" => "Continue", | 91 | .@"continue" => "Continue", |
| ... | @@ -160,8 +158,6 @@ pub const Status = enum(u10) { | ... | @@ -160,8 +158,6 @@ pub const Status = enum(u10) { |
| 160 | .loop_detected => "Loop Detected", | 158 | .loop_detected => "Loop Detected", |
| 161 | .not_extended => "Not Extended", | 159 | .not_extended => "Not Extended", |
| 162 | .network_authentication_required => "Network Authentication Required", | 160 | .network_authentication_required => "Network Authentication Required", |
| 163 | | | |
| 164 | else => return null, | | |
| 165 | }; | 161 | }; |
| 166 | } | 162 | } |
| 167 | }; | 163 | }; |