Back out clippy::manual_map for now
This commit is contained in:
parent
af5fdb3146
commit
58807c5f8b
|
@ -757,7 +757,6 @@ fn command_revoke(config: &Config, account: Pubkey, delegate: Option<Pubkey>) ->
|
||||||
.get_token_account(&account)?
|
.get_token_account(&account)?
|
||||||
.ok_or_else(|| format!("Could not find token account {}", account))?;
|
.ok_or_else(|| format!("Could not find token account {}", account))?;
|
||||||
|
|
||||||
#[allow(clippy::manual_map)]
|
|
||||||
if let Some(string) = source_account.delegate {
|
if let Some(string) = source_account.delegate {
|
||||||
Some(Pubkey::from_str(&string)?)
|
Some(Pubkey::from_str(&string)?)
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -159,7 +159,6 @@ impl Processor {
|
||||||
|
|
||||||
let source_account_info = next_account_info(account_info_iter)?;
|
let source_account_info = next_account_info(account_info_iter)?;
|
||||||
|
|
||||||
#[allow(clippy::manual_map)]
|
|
||||||
let expected_mint_info = if let Some(expected_decimals) = expected_decimals {
|
let expected_mint_info = if let Some(expected_decimals) = expected_decimals {
|
||||||
Some((next_account_info(account_info_iter)?, expected_decimals))
|
Some((next_account_info(account_info_iter)?, expected_decimals))
|
||||||
} else {
|
} else {
|
||||||
|
@ -268,7 +267,6 @@ impl Processor {
|
||||||
|
|
||||||
let source_account_info = next_account_info(account_info_iter)?;
|
let source_account_info = next_account_info(account_info_iter)?;
|
||||||
|
|
||||||
#[allow(clippy::manual_map)]
|
|
||||||
let expected_mint_info = if let Some(expected_decimals) = expected_decimals {
|
let expected_mint_info = if let Some(expected_decimals) = expected_decimals {
|
||||||
Some((next_account_info(account_info_iter)?, expected_decimals))
|
Some((next_account_info(account_info_iter)?, expected_decimals))
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue