Skip to content

Commit

Permalink
cargo fmt --
Browse files Browse the repository at this point in the history
  • Loading branch information
crispheaney committed Jan 9, 2025
1 parent 1d70095 commit 27f5c8d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion programs/drift/src/math/margin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,11 @@ pub fn calculate_margin_requirement_and_total_collateral_and_liability_info(
continue;
}

if user.spot_positions.iter().any(|p| p.market_index == *market_index && !p.is_available()) {
if user
.spot_positions
.iter()
.any(|p| p.market_index == *market_index && !p.is_available())
{
continue;
}

Expand Down

0 comments on commit 27f5c8d

Please sign in to comment.