Skip to content

Commit 5d792bc

Browse files
committed
style: apply cargo fmt
1 parent 414f345 commit 5d792bc

2 files changed

Lines changed: 11 additions & 10 deletions

File tree

src/services/income.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ impl<'a> IncomeService<'a> {
5151
Some(format!("Income for {}", period)),
5252
&before,
5353
&updated,
54-
Some(format!("{} -> {}", before.expected_amount, updated.expected_amount)),
54+
Some(format!(
55+
"{} -> {}",
56+
before.expected_amount, updated.expected_amount
57+
)),
5558
)?;
5659

5760
Ok(updated)
@@ -161,7 +164,11 @@ mod tests {
161164

162165
// Update
163166
let updated = service
164-
.set_expected_income(&period, Money::from_cents(600000), Some("Updated".to_string()))
167+
.set_expected_income(
168+
&period,
169+
Money::from_cents(600000),
170+
Some("Updated".to_string()),
171+
)
165172
.unwrap();
166173

167174
assert_eq!(updated.expected_amount.cents(), 600000);

src/tui/views/budget.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,7 @@ fn render_atb_header(frame: &mut Frame, app: &mut App, area: Rect) {
101101
.flatten()
102102
{
103103
// Over budget warning
104-
Some((
105-
format!(" │ Over Income: {} ⚠", overage),
106-
Color::Red,
107-
))
104+
Some((format!(" │ Over Income: {} ⚠", overage), Color::Red))
108105
} else if let Some(remaining) = budget_service
109106
.get_remaining_to_budget_from_income(&app.current_period)
110107
.ok()
@@ -116,10 +113,7 @@ fn render_atb_header(frame: &mut Frame, app: &mut App, area: Rect) {
116113
Color::Green,
117114
))
118115
} else if remaining.is_zero() {
119-
Some((
120-
" │ Income: Fully Budgeted ✓".to_string(),
121-
Color::Green,
122-
))
116+
Some((" │ Income: Fully Budgeted ✓".to_string(), Color::Green))
123117
} else {
124118
None
125119
}

0 commit comments

Comments
 (0)