From 33b5b36f44e51e9a7a3061991ff950ae4f839e76 Mon Sep 17 00:00:00 2001 From: adria0 Date: Wed, 29 Jul 2020 11:34:06 +0200 Subject: [PATCH] Fix warnings: single tuples --- ethcore/src/tx_filter.rs | 2 +- ethcore/sync/src/light_sync/sync_round.rs | 2 +- util/EIP-712/src/encode.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ethcore/src/tx_filter.rs b/ethcore/src/tx_filter.rs index 1e3c45ec4..09e16c06a 100644 --- a/ethcore/src/tx_filter.rs +++ b/ethcore/src/tx_filter.rs @@ -52,7 +52,7 @@ pub struct TransactionFilter { contract_address: Address, transition_block: BlockNumber, permission_cache: Mutex>, - contract_version_cache: Mutex>>, + contract_version_cache: Mutex>>, } impl TransactionFilter { diff --git a/ethcore/sync/src/light_sync/sync_round.rs b/ethcore/sync/src/light_sync/sync_round.rs index a099aba7a..b8bc61773 100644 --- a/ethcore/sync/src/light_sync/sync_round.rs +++ b/ethcore/sync/src/light_sync/sync_round.rs @@ -251,7 +251,7 @@ impl Fetcher { } // state transition not triggered until drain is finished. - (SyncRound::Fetch(self)) + SyncRound::Fetch(self) } } } diff --git a/util/EIP-712/src/encode.rs b/util/EIP-712/src/encode.rs index 6a52db303..59d4033b3 100644 --- a/util/EIP-712/src/encode.rs +++ b/util/EIP-712/src/encode.rs @@ -45,7 +45,7 @@ fn check_hex(string: &str) -> Result<()> { fn build_dependencies<'a>( message_type: &'a str, message_types: &'a MessageTypes, -) -> Option<(HashSet<&'a str>)> { +) -> Option> { if message_types.get(message_type).is_none() { return None; }