mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-22 22:34:45 +00:00
Rust 1.84 lints (#6781)
* Fix few lints * Fix remaining lints * Use fully qualified syntax
This commit is contained in:
@@ -228,13 +228,10 @@ impl<E: EthSpec> PendingComponents<E> {
|
||||
);
|
||||
|
||||
let all_blobs_received = block_kzg_commitments_count_opt
|
||||
.map_or(false, |num_expected_blobs| {
|
||||
num_expected_blobs == num_received_blobs
|
||||
});
|
||||
.is_some_and(|num_expected_blobs| num_expected_blobs == num_received_blobs);
|
||||
|
||||
let all_columns_received = expected_columns_opt.map_or(false, |num_expected_columns| {
|
||||
num_expected_columns == num_received_columns
|
||||
});
|
||||
let all_columns_received = expected_columns_opt
|
||||
.is_some_and(|num_expected_columns| num_expected_columns == num_received_columns);
|
||||
|
||||
all_blobs_received || all_columns_received
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user