Skip to content

Commit

Permalink
fix less
Browse files Browse the repository at this point in the history
  • Loading branch information
jack committed Jun 27, 2024
1 parent 492d8b9 commit 708b207
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/interface/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ impl StateChange for AmountChange {
AmountChange::Inc(pos) => AmountChange::Inc(*pos + add),
AmountChange::Zero => AmountChange::Inc(add),
AmountChange::Dec(neg) => match add.cmp(neg) {
Ordering::Greater => AmountChange::Dec(*neg - add),
Ordering::Less => AmountChange::Dec(*neg - add),
Ordering::Equal => AmountChange::Zero,
Ordering::Less => AmountChange::Inc(add - *neg),
Ordering::Greater => AmountChange::Inc(add - *neg),

Check warning on line 173 in src/interface/contract.rs

View check run for this annotation

Codecov / codecov/patch

src/interface/contract.rs#L170-L173

Added lines #L170 - L173 were not covered by tests
},
};
}
Expand Down

0 comments on commit 708b207

Please sign in to comment.