| ... | @@ -492,10 +492,7 @@ pub fn formatType( | ... | @@ -492,10 +492,7 @@ pub fn formatType( |
| 492 | }, | 492 | }, |
| 493 | .Type => return output(context, @typeName(T)), | 493 | .Type => return output(context, @typeName(T)), |
| 494 | .EnumLiteral => { | 494 | .EnumLiteral => { |
| 495 | const name = @tagName(value); | 495 | const buffer = [_]u8{'.'} ++ @tagName(value); |
| 496 | var buffer: [name.len + 1]u8 = undefined; | | |
| 497 | buffer[0] = '.'; | | |
| 498 | std.mem.copy(u8, buffer[1..], name); | | |
| 499 | return formatType(buffer, fmt, options, context, Errors, output, max_depth); | 496 | return formatType(buffer, fmt, options, context, Errors, output, max_depth); |
| 500 | }, | 497 | }, |
| 501 | else => @compileError("Unable to format type '" ++ @typeName(T) ++ "'"), | 498 | else => @compileError("Unable to format type '" ++ @typeName(T) ++ "'"), |