Make clippy happy (#580)

This commit is contained in:
Christian Kamm 2023-05-09 21:08:55 +02:00 committed by GitHub
parent d2b5bffb65
commit 450f446032
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 7 deletions

View File

@ -70,7 +70,7 @@ jobs:
- name: Run clippy
# The --allow args are due to clippy scanning anchor
run: cargo clippy --no-deps -- --deny=warnings --allow=clippy::style --allow=clippy::complexity --allow=clippy::manual-retain --allow=clippy::crate-in-macro-def --allow=clippy::result-large-err --allow=clippy::derive_partial_eq_without_eq
run: cargo clippy --workspace --exclude anchor-\* --exclude fixed --exclude checked_math --features enable-gpl -- --no-deps --deny=warnings --allow=clippy::style --allow=clippy::complexity --allow=clippy::manual-retain --allow=clippy::crate-in-macro-def --allow=clippy::result-large-err --allow=clippy::derive_partial_eq_without_eq
test:
name: Test

View File

@ -187,9 +187,6 @@ pub fn benchmark(_ctx: Context<Benchmark>) -> Result<()> {
let _ = half + half; // 0
sol_log_compute_units(); // 92509
let _ = max - max; // 0
sol_log_compute_units(); // 92408
let _ = large_number * large_number; // 77
sol_log_compute_units(); // 92230
@ -200,8 +197,5 @@ pub fn benchmark(_ctx: Context<Benchmark>) -> Result<()> {
let _ = half / max; // 3438
sol_log_compute_units(); // 87751
let _ = max / max; // 3457
sol_log_compute_units(); // 84193
Ok(())
}

View File

@ -1,2 +1,3 @@
[toolchain]
channel = "1.65"
components = ["rustfmt", "clippy"]