Skip to content

Commit

Permalink
Let compiler infer type for into
Browse files Browse the repository at this point in the history
  • Loading branch information
DewaldV committed Apr 14, 2024
1 parent 576ddce commit 8f354c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub async fn list(token: &str, account_type: accounts::AccountType) -> monzo::Re
let accounts = client.accounts().await?;
let found_account = accounts
.iter()
.find(|acc| acc.account_type == Into::<monzo::accounts::Type>::into(account_type));
.find(|acc| acc.account_type == account_type.into());

match found_account {
Some(acc) => {
Expand Down

0 comments on commit 8f354c2

Please sign in to comment.