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