From 34d9c756d1acfbc9e1ffd253aa54281df6b565cc Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Mon, 10 Jun 2024 08:22:49 -0700 Subject: [PATCH] cargo fmt --- src/bin/sys-lend.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/bin/sys-lend.rs b/src/bin/sys-lend.rs index d3e44ac..e9e5707 100644 --- a/src/bin/sys-lend.rs +++ b/src/bin/sys-lend.rs @@ -888,9 +888,7 @@ async fn main() -> Result<(), Box> { assert!(matches!(cmd, Command::Deposit | Command::Rebalance)); None } - ui_amount => { - Some(token.amount(ui_amount.parse::().unwrap())) - } + ui_amount => Some(token.amount(ui_amount.parse::().unwrap())), }; let supply_balance = pools @@ -979,7 +977,7 @@ async fn main() -> Result<(), Box> { return Ok(()); } (requested_amount, requested_amount) - }, + } }; ( @@ -1001,9 +999,7 @@ async fn main() -> Result<(), Box> { } let (minimum_op_amount, maximum_op_amount) = match requested_amount { - None => { - (minimum_amount, withdraw_pool_supply_balance) - }, + None => (minimum_amount, withdraw_pool_supply_balance), Some(u64::MAX) => { (withdraw_pool_supply_balance, withdraw_pool_supply_balance) } @@ -1017,7 +1013,7 @@ async fn main() -> Result<(), Box> { return Ok(()); } (requested_amount, requested_amount) - }, + } }; (