mirror of
https://github.com/bspeice/dtparse
synced 2025-01-11 13:20:05 -05:00
Cargo fmt
This commit is contained in:
parent
4079b3ce2f
commit
61022c323e
@ -1042,11 +1042,7 @@ impl Parser {
|
||||
} else if vec![8, 12, 14].contains(&len_li) {
|
||||
// YYMMDD
|
||||
let s = &tokens[idx];
|
||||
ymd.append(
|
||||
s[..4].parse::<i32>()?,
|
||||
&s[..4],
|
||||
Some(YMDLabel::Year),
|
||||
)?;
|
||||
ymd.append(s[..4].parse::<i32>()?, &s[..4], Some(YMDLabel::Year))?;
|
||||
ymd.append(s[4..6].parse::<i32>()?, &s[4..6], None)?;
|
||||
ymd.append(s[6..8].parse::<i32>()?, &s[6..8], None)?;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user