| ... | @@ -480,7 +480,7 @@ pub fn formatType( | ... | @@ -480,7 +480,7 @@ pub fn formatType( |
| 480 | ) @TypeOf(writer).Error!void { | 480 | ) @TypeOf(writer).Error!void { |
| 481 | const T = @TypeOf(value); | 481 | const T = @TypeOf(value); |
| 482 | const actual_fmt = comptime if (std.mem.eql(u8, fmt, ANY)) | 482 | const actual_fmt = comptime if (std.mem.eql(u8, fmt, ANY)) |
| 483 | defaultSpec(@TypeOf(value)) | 483 | defaultSpec(T) |
| 484 | else if (fmt.len != 0 and (fmt[0] == '?' or fmt[0] == '!')) switch (@typeInfo(T)) { | 484 | else if (fmt.len != 0 and (fmt[0] == '?' or fmt[0] == '!')) switch (@typeInfo(T)) { |
| 485 | .Optional, .ErrorUnion => fmt, | 485 | .Optional, .ErrorUnion => fmt, |
| 486 | else => stripOptionalOrErrorUnionSpec(fmt), | 486 | else => stripOptionalOrErrorUnionSpec(fmt), |