From be45c2734d9f4ac04d651155e388158d5d61000a Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Fri, 3 May 2024 15:33:11 +0200 Subject: [PATCH 1/2] ci: use clippy --all-targets --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 281a34e..cca0070 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,7 +47,7 @@ jobs: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - run: rustup component add clippy - - run: cargo clippy -- -D warnings + - run: cargo clippy --all-targets -- -D warnings coverage: name: Code Coverage From fc148543949d7920719d44a46e61784996d0de0d Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Fri, 3 May 2024 15:35:24 +0200 Subject: [PATCH 2/2] clippy: fix warnings from zero_prefixed_literal --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index dac5bfd..b0e7a00 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -476,7 +476,7 @@ mod tests { #[test] fn test_time_only() { env::set_var("TZ", "UTC"); - let test_date = Local.with_ymd_and_hms(2024, 03, 03, 0, 0, 0).unwrap(); + let test_date = Local.with_ymd_and_hms(2024, 3, 3, 0, 0, 0).unwrap(); let parsed_time = parse_datetime_at_date(test_date, "9:04:30 PM +0530") .unwrap() .timestamp();