Skip to content

Commit

Permalink
fix: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
tomg10 committed Oct 30, 2023
1 parent 475e4f2 commit 84c3d2e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/bin/snapshot_creator/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ async fn run(blob_store: Box<dyn ObjectStore>, pool: ConnectionPool) {
factory_deps,
};
let key = SnapshotStorageKey {
l1_batch_number: l1_batch_number,
l1_batch_number,
chunk_id,
};
blob_store.put(key, &result).await.unwrap();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ impl<G: L1GasPriceProvider> SnapshotsNamespace<G> {
metadata: snapshot_metadata,
miniblock_number,
last_l1_batch_with_metadata: l1_batch_with_metadata,
chunks: chunks,
chunks,
}))
}
}
Expand Down
2 changes: 1 addition & 1 deletion core/lib/zksync_core/src/sync_layer/snapshots.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ pub async fn load_from_snapshot_if_needed(

if applied_snapshot_status.is_none() {
applied_snapshot_status = Some(AppliedSnapshotStatus {
l1_batch_number: l1_batch_number,
l1_batch_number,
is_finished: false,
last_finished_chunk_id: None,
});
Expand Down

0 comments on commit 84c3d2e

Please sign in to comment.