diff --git a/crates/criterion_compat/benches/criterion_integration/external_process.rs b/crates/criterion_compat/benches/criterion_integration/external_process.rs index 314fbb87..d221ad88 100644 --- a/crates/criterion_compat/benches/criterion_integration/external_process.rs +++ b/crates/criterion_compat/benches/criterion_integration/external_process.rs @@ -1,4 +1,6 @@ //! This is a mirror of https://github.com/bheisler/criterion.rs/blob/master/benches/benchmarks/external_process.rs +#![allow(clippy::all)] + use codspeed_criterion_compat::{criterion_group, Criterion}; use std::{ io::{BufRead, BufReader, Write}, diff --git a/crates/criterion_compat/src/compat/bencher.rs b/crates/criterion_compat/src/compat/bencher.rs index 501e6d26..6eaaab0d 100644 --- a/crates/criterion_compat/src/compat/bencher.rs +++ b/crates/criterion_compat/src/compat/bencher.rs @@ -15,6 +15,7 @@ pub struct Bencher<'a> { _marker: std::marker::PhantomData<&'a ()>, } +#[allow(clippy::needless_lifetimes)] impl<'a> Bencher<'a> { pub fn new(codspeed: Rc>, uri: String) -> Self { Bencher { @@ -137,6 +138,7 @@ pub struct AsyncBencher<'a, 'b, A: AsyncExecutor> { } #[cfg(feature = "async")] +#[allow(clippy::needless_lifetimes)] impl<'a, 'b, A: AsyncExecutor> AsyncBencher<'a, 'b, A> { #[allow(clippy::await_holding_refcell_ref)] #[inline(never)] diff --git a/crates/criterion_compat/src/compat/group.rs b/crates/criterion_compat/src/compat/group.rs index 848d177e..5366f950 100644 --- a/crates/criterion_compat/src/compat/group.rs +++ b/crates/criterion_compat/src/compat/group.rs @@ -17,6 +17,7 @@ pub struct BenchmarkGroup<'a, M: Measurement = WallTime> { _marker: PhantomData<&'a M>, } +#[allow(clippy::needless_lifetimes)] impl<'a, M: Measurement> BenchmarkGroup<'a, M> { pub fn new(criterion: &mut Criterion, group_name: String) -> BenchmarkGroup { BenchmarkGroup:: { @@ -78,7 +79,7 @@ impl<'a, M: Measurement> BenchmarkGroup<'a, M> { } // Dummy methods -#[allow(unused_variables)] +#[allow(unused_variables, clippy::needless_lifetimes)] impl<'a, M: Measurement> BenchmarkGroup<'a, M> { pub fn sample_size(&mut self, n: usize) -> &mut Self { self diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 8cca5be0..9db33c0e 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,2 +1,2 @@ [toolchain] -channel = "1.80" +channel = "1.84"