From 8d3e0582a8940f210aace14f0cb46affc1f8274e Mon Sep 17 00:00:00 2001 From: draganrakita Date: Thu, 17 Dec 2020 17:24:33 +0100 Subject: [PATCH] fmt --- ethcore/sync/src/chain/supplier.rs | 2 +- ethcore/sync/src/tests/helpers.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ethcore/sync/src/chain/supplier.rs b/ethcore/sync/src/chain/supplier.rs index c9208e5dd..920027581 100644 --- a/ethcore/sync/src/chain/supplier.rs +++ b/ethcore/sync/src/chain/supplier.rs @@ -15,10 +15,10 @@ // along with OpenEthereum. If not, see . use bytes::Bytes; +use devp2p::PAYLOAD_SOFT_LIMIT; use enum_primitive::FromPrimitive; use ethereum_types::H256; use network::{self, PeerId}; -use devp2p::PAYLOAD_SOFT_LIMIT; use parking_lot::RwLock; use rlp::{Rlp, RlpStream}; use std::cmp; diff --git a/ethcore/sync/src/tests/helpers.rs b/ethcore/sync/src/tests/helpers.rs index c536be320..105e4760d 100644 --- a/ethcore/sync/src/tests/helpers.rs +++ b/ethcore/sync/src/tests/helpers.rs @@ -168,7 +168,7 @@ where None } - fn protocol_version(&self, protocol: &ProtocolId, peer_id: PeerId) -> u8 { + fn protocol_version(&self, protocol: &ProtocolId, _peer_id: PeerId) -> u8 { if protocol == &PAR_PROTOCOL { PAR_PROTOCOL_VERSION_2.0 } else {