Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add non_exhaustive compiler directive
Currently adding variants to enums is a breaking change. In an effort to reduce the upgrade burden on users we can use the `non_exhaustive` compiler directive so that adding a new variant does not cause downstream code to break. This is, however, a breaking change because downstream users will have to add a wildcard match arm to any pattern matching code they have for these enums. Add `non_exhaustive` to the following tyes: - `AddressType` - `Payload` - `LeafVersion`
- Loading branch information