Fix warnings: single tuples
This commit is contained in:
parent
ef7a82835a
commit
33b5b36f44
@ -52,7 +52,7 @@ pub struct TransactionFilter {
|
|||||||
contract_address: Address,
|
contract_address: Address,
|
||||||
transition_block: BlockNumber,
|
transition_block: BlockNumber,
|
||||||
permission_cache: Mutex<LruCache<(H256, Address), u32>>,
|
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 {
|
impl TransactionFilter {
|
||||||
|
@ -251,7 +251,7 @@ impl Fetcher {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// state transition not triggered until drain is finished.
|
// state transition not triggered until drain is finished.
|
||||||
(SyncRound::Fetch(self))
|
SyncRound::Fetch(self)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -45,7 +45,7 @@ fn check_hex(string: &str) -> Result<()> {
|
|||||||
fn build_dependencies<'a>(
|
fn build_dependencies<'a>(
|
||||||
message_type: &'a str,
|
message_type: &'a str,
|
||||||
message_types: &'a MessageTypes,
|
message_types: &'a MessageTypes,
|
||||||
) -> Option<(HashSet<&'a str>)> {
|
) -> Option<HashSet<&'a str>> {
|
||||||
if message_types.get(message_type).is_none() {
|
if message_types.get(message_type).is_none() {
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user