Skip to content

Commit

Permalink
Remove unused mut
Browse files Browse the repository at this point in the history
  • Loading branch information
maurolacy committed Jul 28, 2023
1 parent 38bda4f commit f61be99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/provider/vault/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ impl VaultContract<'_> {
.users
.may_load(ctx.deps.storage, &ctx.info.sender)?
.unwrap_or_default();
let mut user = user_lock.write()?;
let user = user_lock.write()?;
user.max_lien = user.max_lien.max(lien.amount);
user.total_slashable += amount * lien.slashable;

Expand Down

0 comments on commit f61be99

Please sign in to comment.