1
0
mirror of https://github.com/bspeice/dtparse synced 2025-01-11 21:30:04 -05:00

Cargo fmt

This commit is contained in:
Bradlee Speice 2020-06-11 13:11:52 -04:00
parent 4079b3ce2f
commit 61022c323e
2 changed files with 2 additions and 6 deletions

View File

@ -1042,11 +1042,7 @@ impl Parser {
} else if vec![8, 12, 14].contains(&len_li) { } else if vec![8, 12, 14].contains(&len_li) {
// YYMMDD // YYMMDD
let s = &tokens[idx]; let s = &tokens[idx];
ymd.append( ymd.append(s[..4].parse::<i32>()?, &s[..4], Some(YMDLabel::Year))?;
s[..4].parse::<i32>()?,
&s[..4],
Some(YMDLabel::Year),
)?;
ymd.append(s[4..6].parse::<i32>()?, &s[4..6], None)?; ymd.append(s[4..6].parse::<i32>()?, &s[4..6], None)?;
ymd.append(s[6..8].parse::<i32>()?, &s[6..8], None)?; ymd.append(s[6..8].parse::<i32>()?, &s[6..8], None)?;