Skip to content

Commit

Permalink
Clippy things a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
Bathtor committed Oct 18, 2019
1 parent 78395ea commit a4714e6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions .clippy.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cognitive-complexity-threshold=50
9 changes: 5 additions & 4 deletions executor-performance/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
// except according to those terms.
#![cfg_attr(feature = "nightly", feature(test))]
#![allow(unused_parens)]
#![allow(clippy::style)] // not important in the testing app
extern crate executors;
extern crate synchronoise;
extern crate time;
Expand Down Expand Up @@ -252,8 +253,8 @@ fn run_throughput_experiments(
}
}

fn run_throughput_experiment<'a, E: Executor + 'static>(
mut exp: crate::experiment::Experiment<'a, E>,
fn run_throughput_experiment<E: Executor + 'static>(
mut exp: crate::experiment::Experiment<'_, E>,
total_messages: f64,
) -> f64 {
exp.prepare();
Expand Down Expand Up @@ -328,8 +329,8 @@ fn run_latency_experiments(
}
}

fn run_latency_experiment<'a, E: Executor + 'static>(
mut exp: crate::latency_experiment::Experiment<'a, E>,
fn run_latency_experiment<E: Executor + 'static>(
mut exp: crate::latency_experiment::Experiment<'_, E>,
total_messages: u64,
) -> Stats {
exp.prepare();
Expand Down
1 change: 1 addition & 0 deletions executors/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
// except according to those terms.
#![doc(html_root_url = "https://docs.rs/executors/0.5.3")]
#![allow(unused_parens)]
#![allow(clippy::unused_unit)]

//! This crate provides a number of task executors all implementing the
//! [`Executor`](common/trait.Executor.html) trait.
Expand Down

0 comments on commit a4714e6

Please sign in to comment.