clippy: Fixes blocks in conditions (#34600)
This commit is contained in:
parent
f8c3e24e73
commit
58170cf9bf
|
@ -7973,10 +7973,12 @@ impl Bank {
|
|||
}
|
||||
}
|
||||
for precompile in get_precompiles() {
|
||||
#[allow(clippy::blocks_in_if_conditions)]
|
||||
if precompile.feature.map_or(false, |ref feature_id| {
|
||||
self.feature_set.is_active(feature_id)
|
||||
}) {
|
||||
let should_add_precompile = precompile
|
||||
.feature
|
||||
.as_ref()
|
||||
.map(|feature_id| self.feature_set.is_active(feature_id))
|
||||
.unwrap_or(false);
|
||||
if should_add_precompile {
|
||||
self.add_precompile(&precompile.program_id);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue