Apply clippy lints to beacon node

This commit is contained in:
Age Manning
2019-11-28 14:06:46 +11:00
parent 2bbac2ed18
commit 6f2fc7560a
11 changed files with 42 additions and 52 deletions

View File

@@ -22,8 +22,11 @@ use std::time::Duration;
use tokio::io::{AsyncRead, AsyncWrite};
pub(crate) mod codec;
#[allow(clippy::type_complexity)]
#[allow(clippy::congitive_complexity)]
mod handler;
pub mod methods;
#[allow(clippy::type_complexity)]
mod protocol;
/// The return type used in the behaviour and the resultant event from the protocols handler.
@@ -77,7 +80,7 @@ impl<TSubstream> RPC<TSubstream> {
RPC {
events: Vec::new(),
marker: PhantomData,
log: log,
log,
}
}