Resolve nightly-2021-10-05 clippy complaints
This commit is contained in:
@ -277,9 +277,7 @@ impl fmt::Display for GenesisConfig {
|
||||
self.accounts
|
||||
.iter()
|
||||
.map(|(pubkey, account)| {
|
||||
if account.lamports == 0 {
|
||||
panic!("{:?}", (pubkey, account));
|
||||
}
|
||||
assert!(account.lamports > 0, "{:?}", (pubkey, account));
|
||||
account.lamports
|
||||
})
|
||||
.sum::<u64>()
|
||||
|
@ -62,6 +62,7 @@ impl Precompile {
|
||||
where
|
||||
F: Fn(&Pubkey) -> bool,
|
||||
{
|
||||
#![allow(clippy::redundant_closure)]
|
||||
self.feature
|
||||
.map_or(true, |ref feature_id| is_enabled(feature_id))
|
||||
&& self.program_id == *program_id
|
||||
|
Reference in New Issue
Block a user