mirror of
https://github.com/bspeice/dtparse
synced 2024-11-12 17:08:09 -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)?;
|
||||
|
||||
|
@ -46,4 +46,4 @@ fn large_int() {
|
||||
let parse_result = parse("1412409095009.jpg");
|
||||
assert!(parse_result.is_err());
|
||||
println!("{:?}", parse_result);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user