Skip to content

Commit

Permalink
Merge pull request #573 from helium/jg/fix-compile-error
Browse files Browse the repository at this point in the history
fix recent mutability lint change
  • Loading branch information
jeffgrunewald authored Jul 13, 2023
2 parents 9e4f5e6 + 991c2a5 commit 213f103
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iot_packet_verifier/src/balances.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ where
) -> Result<Option<u64>, S::Error> {
let mut balances = self.balances.lock().await;

let mut balance = if !balances.contains_key(payer) {
let balance = if !balances.contains_key(payer) {
let new_balance = self.solana.payer_balance(payer).await?;
balances.insert(payer.clone(), Balance::new(new_balance));
balances.get_mut(payer).unwrap()
} else {
let mut balance = balances.get_mut(payer).unwrap();
let balance = balances.get_mut(payer).unwrap();

// If the balance is not sufficient, check to see if it has been increased
if balance.balance < amount + balance.burned {
Expand Down

0 comments on commit 213f103

Please sign in to comment.