From 27f5c8d36f49b09a6ce714e4d0ea4a917610bb6d Mon Sep 17 00:00:00 2001 From: Chris Heaney Date: Wed, 8 Jan 2025 19:24:50 -0500 Subject: [PATCH] cargo fmt -- --- programs/drift/src/math/margin.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/programs/drift/src/math/margin.rs b/programs/drift/src/math/margin.rs index 2e0f0618d..ba8ddf5d8 100644 --- a/programs/drift/src/math/margin.rs +++ b/programs/drift/src/math/margin.rs @@ -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; }