diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c01a89..514d111 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/error.rs b/src/error.rs index 77e4ed3..599bb2c 100644 --- a/src/error.rs +++ b/src/error.rs @@ -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),