Note that tracing causes clippy false positives

Thanks @hawkw for pointing this out.
This commit is contained in:
Henry de Valence 2020-02-05 12:31:03 -08:00
parent f04f4f0b98
commit 8d58dd804f
3 changed files with 4 additions and 2 deletions

View File

@ -28,6 +28,10 @@
#![deny(missing_docs)]
// Tracing causes false positives on this lint:
// https://github.com/tokio-rs/tracing/issues/553
#![allow(clippy::cognitive_complexity)]
#[macro_use]
extern crate pin_project;
#[macro_use]

View File

@ -220,7 +220,6 @@ where
type Future =
Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'static>>;
#[allow(clippy::cognitive_complexity)]
fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
// Process peer discovery updates.
let _ = self.poll_discover(cx)?;

View File

@ -293,7 +293,6 @@ impl Decoder for Codec {
type Item = Message;
type Error = Error;
#[allow(clippy::cognitive_complexity)]
fn decode(&mut self, src: &mut BytesMut) -> Result<Option<Self::Item>, Self::Error> {
use Error::Parse;
match self.state {