Fix format_int

This commit is contained in:
yt2b committed 2023-01-02 22:51:49 +09:00
1 parent 4d53c7cb27
commit 8e85234134
1 file changed
+3 -7
+3 -7
View File
@@ -513,13 +513,9 @@ impl FormatSpec {
Some(_) | None => Err("%c arg not in range(0x110000)"),
},
},
Some(FormatType::GeneralFormatUpper) => {
Err("Unknown format code 'G' for object of type 'int'")
}
Some(FormatType::GeneralFormatLower) => {
Err("Unknown format code 'g' for object of type 'int'")
}
Some(FormatType::FixedPointUpper)
Some(FormatType::GeneralFormatUpper)
| Some(FormatType::GeneralFormatLower)
| Some(FormatType::FixedPointUpper)
| Some(FormatType::FixedPointLower)
| Some(FormatType::ExponentUpper)
| Some(FormatType::ExponentLower)