Make clippy happy (#580)
This commit is contained in:
parent
d2b5bffb65
commit
450f446032
|
@ -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
|
||||
|
|
|
@ -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(())
|
||||
}
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
[toolchain]
|
||||
channel = "1.65"
|
||||
components = ["rustfmt", "clippy"]
|
||||
|
|
Loading…
Reference in New Issue