Note that tracing causes clippy false positives
Thanks @hawkw for pointing this out.
This commit is contained in:
parent
f04f4f0b98
commit
8d58dd804f
|
@ -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]
|
||||
|
|
|
@ -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)?;
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue