diff --git a/tokio-executor/src/threadpool/pool/mod.rs b/tokio-executor/src/threadpool/pool/mod.rs index f5c7c37c2..5d6f05f1a 100644 --- a/tokio-executor/src/threadpool/pool/mod.rs +++ b/tokio-executor/src/threadpool/pool/mod.rs @@ -395,6 +395,7 @@ impl Pool { /// If there are any other workers currently relaxing, signal them that work /// is available so that they can try to find more work to process. + #[allow(clippy::cognitive_complexity)] // https://github.com/rust-lang/rust-clippy/issues/3900 pub(crate) fn signal_work(&self, pool: &Arc) { debug_assert_eq!(*self, **pool); diff --git a/tokio-executor/src/threadpool/task/mod.rs b/tokio-executor/src/threadpool/task/mod.rs index 063434170..c2fe9dc88 100644 --- a/tokio-executor/src/threadpool/task/mod.rs +++ b/tokio-executor/src/threadpool/task/mod.rs @@ -96,7 +96,7 @@ impl Task { /// scheduled again. /// // tracing macro expansion adds enough branches to make clippy angry here. - #[allow(clippy::cognitive_complexity)] + #[allow(clippy::cognitive_complexity)] // https://github.com/rust-lang/rust-clippy/issues/3900 pub(crate) fn run(me: &Arc, pool: &Arc) -> Run { use self::State::*; #[cfg(feature = "tracing")] diff --git a/tokio-executor/src/threadpool/worker/mod.rs b/tokio-executor/src/threadpool/worker/mod.rs index 63f170c65..91c58e48a 100644 --- a/tokio-executor/src/threadpool/worker/mod.rs +++ b/tokio-executor/src/threadpool/worker/mod.rs @@ -564,7 +564,7 @@ impl Worker { /// /// Returns `true` if woken up due to new work arriving. // tracing macro expansion adds enough branches to make clippy angry here. - #[cfg_attr(feature = "tracing", allow(clippy::cognitive_complexity))] + #[allow(clippy::cognitive_complexity)] // https://github.com/rust-lang/rust-clippy/issues/3900 fn sleep(&self) -> bool { use self::Lifecycle::*;