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