Add string typed formatting

This commit is contained in:
Jeong YunWon committed 2020-07-23 06:06:13 +09:00
1 parent a0a73e5d97
commit 1b2d179b38
1 file changed
+1
+1
View File
@@ -227,6 +227,7 @@ fn parse_grouping_option(text: &str) -> (Option<FormatGrouping>, &str) {
fn parse_format_type(text: &str) -> (Option<FormatType>, &str) {
let mut chars = text.chars();
match chars.next() {
Some('s') => (Some(FormatType::String), chars.as_str()),
Some('b') => (Some(FormatType::Binary), chars.as_str()),
Some('c') => (Some(FormatType::Character), chars.as_str()),
Some('d') => (Some(FormatType::Decimal), chars.as_str()),