Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
view: 🔭 exhaustive pattern in
Planner
reset
see #3955. `Planner::plan_with_spendable_and_votable_notes()` resets all of its fields, **except for** `fee_tier`. this does not address that "bug", per conversation in discord: > **kate [penumbra]** i noticed that Planner::plan_with_spendable_and_votable_notes() does not clear the fee tier field. i believe that is a dormant bug. would a PR to fix that be welcomed? > **hdevalence [penumbra]** i'd hold off on it, i would prefer to throw that code away > **hdevalence [penumbra]** there should be no clearing of fields at all, for instance to prevent other such bugs creeping up in the meantime, we add an _exhaustive_ pattern destructuring the `Planner`, so that future fields added to the planner must be contended with.
- Loading branch information