Skip to content

Commit

Permalink
Merge pull request #32 from cowlicks/non-exhaustive-error-gh30
Browse files Browse the repository at this point in the history
Make `HyperbeeError` non-exhaustive
  • Loading branch information
cowlicks authored Apr 10, 2024
2 parents 44ec669 + 693ebc8 commit fbabc72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added

- Added `Hyperbee::from_hypercore`.
- Made `HyperbeeError` non-exhaustive [#32](https://github.com/cowlicks/hyperbee/pull/32)

### Changed

Expand Down
1 change: 1 addition & 0 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ use crate::{
/// Error type used by all [`Result`]s in this library.
#[cfg_attr(feature = "ffi", derive(uniffi::Error), uniffi(flat_error))]
#[derive(Error, Debug)]
#[non_exhaustive]
pub enum HyperbeeError {
#[error("There was an error in the underlying Hypercore")]
HypercoreError(#[from] HypercoreError),
Expand Down

0 comments on commit fbabc72

Please sign in to comment.