cargo fmt

This commit is contained in:
Greg Fitzgerald 2018-11-02 20:44:53 -06:00 committed by Grimes
parent c8c255ad73
commit e7cbbd8d45
1 changed files with 5 additions and 3 deletions

View File

@ -99,10 +99,12 @@ impl BudgetExpr {
/// Return true if the budget spends exactly `spendable_tokens`.
pub fn verify(&self, spendable_tokens: i64) -> bool {
match self {
BudgetExpr::Pay(payment) | BudgetExpr::After(_, payment) | BudgetExpr::And(_, _, payment) => {
payment.tokens == spendable_tokens
BudgetExpr::Pay(payment)
| BudgetExpr::After(_, payment)
| BudgetExpr::And(_, _, payment) => payment.tokens == spendable_tokens,
BudgetExpr::Or(a, b) => {
a.1.tokens == spendable_tokens && b.1.tokens == spendable_tokens
}
BudgetExpr::Or(a, b) => a.1.tokens == spendable_tokens && b.1.tokens == spendable_tokens,
}
}