Skip to content

Commit

Permalink
Mark Error as non-exhaustive
Browse files Browse the repository at this point in the history
Adding a new error variant should not be a breaking change.

Fixes: #11
  • Loading branch information
robin-nitrokey committed Oct 18, 2024
1 parent 4a36846 commit d499e52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

[Unreleased]: https://github.com/trussed-dev/cbor-smol/compare/0.4.1...HEAD

-
- Mark `Error` as non-exhaustive ([#11](https://github.com/trussed-dev/cbor-smol/issues/11))

## [0.4.1][] - 2024-10-08

Expand Down
1 change: 1 addition & 0 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ pub type Result<T, Err = Error> = core::result::Result<T, Err>;
/// This is the error type used by cbor-smol
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(u8)]
#[non_exhaustive]
pub enum Error {
/// This is a feature that cbor-smol will never implement
WontImplement,
Expand Down

0 comments on commit d499e52

Please sign in to comment.