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