Fix warnings: single tuples

This commit is contained in:
adria0 2020-07-29 11:34:06 +02:00 committed by Artem Vorotnikov
parent ef7a82835a
commit 33b5b36f44
No known key found for this signature in database
GPG Key ID: E0148C3F2FBB7A20
3 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@ pub struct TransactionFilter {
contract_address: Address,
transition_block: BlockNumber,
permission_cache: Mutex<LruCache<(H256, Address), u32>>,
contract_version_cache: Mutex<LruCache<(H256), Option<U256>>>,
contract_version_cache: Mutex<LruCache<H256, Option<U256>>>,
}
impl TransactionFilter {

View File

@ -251,7 +251,7 @@ impl Fetcher {
}
// state transition not triggered until drain is finished.
(SyncRound::Fetch(self))
SyncRound::Fetch(self)
}
}
}

View File

@ -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<HashSet<&'a str>> {
if message_types.get(message_type).is_none() {
return None;
}