Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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},
Expand Down
2 changes: 2 additions & 0 deletions crates/criterion_compat/src/compat/bencher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<RefCell<CodSpeed>>, uri: String) -> Self {
Bencher {
Expand Down Expand Up @@ -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)]
Expand Down
3 changes: 2 additions & 1 deletion crates/criterion_compat/src/compat/group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<M>, group_name: String) -> BenchmarkGroup<M> {
BenchmarkGroup::<M> {
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "1.80"
channel = "1.84"
Loading