| ... | ... | @@ -85,12 +85,7 @@ pub const Level = enum { |
| 85 | 85 | debug, |
| 86 | 86 | |
| 87 | 87 | /// Returns a string literal of the given level in full text form. |
| 88 | | pub fn asText(comptime self: Level) switch (self) { |
| 89 | | .err => @TypeOf("error"), |
| 90 | | .warn => @TypeOf("warning"), |
| 91 | | .info => @TypeOf("info"), |
| 92 | | .debug => @TypeOf("debug"), |
| 93 | | } { |
| 88 | pub fn asText(comptime self: Level) []const u8 { |
| 94 | 89 | return switch (self) { |
| 95 | 90 | .err => "error", |
| 96 | 91 | .warn => "warning", |