mirror of
https://github.com/bspeice/dtparse
synced 2025-01-11 21:30:04 -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) {
|
} 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)?;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user