From 61022c323eb918890f1a8b640db21fa4d4e47a78 Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Thu, 11 Jun 2020 13:11:52 -0400 Subject: [PATCH] Cargo fmt --- src/lib.rs | 6 +----- src/tests/fuzzing.rs | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index b894482..a3446cf 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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::()?, - &s[..4], - Some(YMDLabel::Year), - )?; + ymd.append(s[..4].parse::()?, &s[..4], Some(YMDLabel::Year))?; ymd.append(s[4..6].parse::()?, &s[4..6], None)?; ymd.append(s[6..8].parse::()?, &s[6..8], None)?; diff --git a/src/tests/fuzzing.rs b/src/tests/fuzzing.rs index e0695c5..48373f3 100644 --- a/src/tests/fuzzing.rs +++ b/src/tests/fuzzing.rs @@ -46,4 +46,4 @@ fn large_int() { let parse_result = parse("1412409095009.jpg"); assert!(parse_result.is_err()); println!("{:?}", parse_result); -} \ No newline at end of file +}