Skip to content

Commit

Permalink
chore: make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
quake committed Oct 26, 2024
1 parent ede83be commit 32a919b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/protocols/filter/components/block_filters_process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ impl<'a> BlockFiltersProcess<'a> {
.filter
.storage
.get_check_points(cached_check_point_index, 1)
.get(0)
.first()
.cloned()
.expect("all check points before finalized should be existed");
(cached_check_point, cached_block_filter_hashes)
Expand Down
2 changes: 1 addition & 1 deletion src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ impl Storage {
let index = self.get_max_check_point_index();
let hash = self
.get_check_points(index, 1)
.get(0)
.first()
.cloned()
.expect("db get last check point should be ok");
(index, hash)
Expand Down

0 comments on commit 32a919b

Please sign in to comment.