Skip to content

Commit

Permalink
chore: make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksuss committed Nov 9, 2023
1 parent 8cec0d1 commit 4077311
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/simple/command/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ fn to_account_id(id: Option<String>, client: &Client) -> anyhow::Result<AccountI
}

fn str_to_identifier(id: &str) -> anyhow::Result<Erc20Identifier> {
hex_to_address(&id).map(Into::into).or_else(|_| {
hex_to_address(id).map(Into::into).or_else(|_| {
id.parse::<AccountId>()
.map(Into::into)
.map_err(|e| anyhow::anyhow!("{e}"))
Expand Down

0 comments on commit 4077311

Please sign in to comment.