Skip to content

Commit f18688a

Browse files
committed
more clippy
1 parent 5b832fc commit f18688a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/bin/sys.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,7 @@ async fn process_jup_swap<T: Signers>(
10681068
.into());
10691069
}
10701070

1071-
let swap_prefix = format!("Swap {}->{}", from_token, to_token);
1071+
let swap_prefix = format!("Swap {from_token}->{to_token}");
10721072

10731073
if let Some(if_from_balance_exceeds) = if_from_balance_exceeds {
10741074
if from_account.last_update_balance < if_from_balance_exceeds {
@@ -2799,9 +2799,9 @@ async fn process_account_csv(
27992799
disposed_lot.token.ui_amount(disposed_lot.lot.amount)
28002800
),
28012801
disposed_lot.lot.acquisition.when.to_string(),
2802-
format!("{:.9}", cost),
2802+
format!("{cost:.9}"),
28032803
disposed_lot.when.to_string(),
2804-
format!("{:.9}", proceedings),
2804+
format!("{proceedings:.9}"),
28052805
])?;
28062806
}
28072807

@@ -3015,7 +3015,7 @@ async fn process_account_sweep<T: Signers>(
30153015
let apply_exact_amount = |amount: u64| -> Result<u64, Box<dyn std::error::Error>> {
30163016
if let Some(exact_amount) = exact_amount {
30173017
if exact_amount > amount {
3018-
Err(format!("Account has insufficient balance: {}", from_address).into())
3018+
Err(format!("Account has insufficient balance: {from_address}").into())
30193019
} else {
30203020
Ok(exact_amount)
30213021
}

0 commit comments

Comments
 (0)