Skip to content

Commit

Permalink
Complete fix cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
vladbochok committed Feb 4, 2021
1 parent 9cc59f9 commit 56664ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions core/bin/data_restore/src/events_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ impl EventsState {
/// * `eth_blocks_step` - Ethereum blocks delta step
/// * `end_eth_blocks_offset` - last block delta
///
#[allow(clippy::needless_lifetimes)]
async fn get_new_events_and_last_watched_block<'a, T: Transport>(
web3: &Web3<T>,
zksync_contracts: &'a [ZkSyncDeployedContract<T>],
Expand Down
8 changes: 5 additions & 3 deletions core/tests/testkit/src/test_setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -856,9 +856,11 @@ impl TestSetup {
proof: Option<EncodedAggregatedProof>,
) -> ETHExecResult {
let proof = proof.unwrap_or_else(|| {
let mut default_proof = EncodedAggregatedProof::default();
default_proof.individual_vk_inputs = Vec::new();
default_proof.individual_vk_idxs = Vec::new();
let mut default_proof = EncodedAggregatedProof {
individual_vk_inputs: Vec::new(),
individual_vk_idxs: Vec::new(),
..Default::default()
};
for block in blocks {
let commitment = U256::from_big_endian(block.block_commitment.as_bytes());
default_proof.individual_vk_inputs.push(commitment);
Expand Down

0 comments on commit 56664ff

Please sign in to comment.