From bcc057d1f76c875cb3c04351b0a7e71d0b22e154 Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Wed, 10 Jan 2024 14:23:01 -0700 Subject: [PATCH] Bump clippy to 1.73 and fix --- .github/workflows/workspace.yml | 2 +- sm2/src/arithmetic/field.rs | 1 - sm2/src/arithmetic/scalar.rs | 1 - sm2/src/lib.rs | 1 - 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/workspace.yml b/.github/workflows/workspace.yml index d3c258b9..59ee8b24 100644 --- a/.github/workflows/workspace.yml +++ b/.github/workflows/workspace.yml @@ -20,7 +20,7 @@ jobs: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@master with: - toolchain: 1.66.0 + toolchain: 1.73.0 components: clippy - run: cargo clippy --all --all-features -- -D warnings diff --git a/sm2/src/arithmetic/field.rs b/sm2/src/arithmetic/field.rs index e0d7c77d..9abb746f 100644 --- a/sm2/src/arithmetic/field.rs +++ b/sm2/src/arithmetic/field.rs @@ -14,7 +14,6 @@ clippy::cast_possible_wrap, clippy::cast_sign_loss, clippy::cast_possible_truncation, - clippy::integer_arithmetic, clippy::should_implement_trait, clippy::suspicious_op_assign_impl, clippy::unused_unit, diff --git a/sm2/src/arithmetic/scalar.rs b/sm2/src/arithmetic/scalar.rs index 652d3a0b..c00bf721 100644 --- a/sm2/src/arithmetic/scalar.rs +++ b/sm2/src/arithmetic/scalar.rs @@ -15,7 +15,6 @@ clippy::cast_sign_loss, clippy::cast_possible_truncation, clippy::identity_op, - clippy::integer_arithmetic, clippy::too_many_arguments, clippy::unnecessary_cast )] diff --git a/sm2/src/lib.rs b/sm2/src/lib.rs index e4d34d54..0e0271f7 100644 --- a/sm2/src/lib.rs +++ b/sm2/src/lib.rs @@ -15,7 +15,6 @@ clippy::cast_sign_loss, clippy::checked_conversions, clippy::implicit_saturating_sub, - clippy::integer_arithmetic, clippy::panic, clippy::panic_in_result_fn, clippy::unwrap_used,