misc-errors: Allow or make error enums non_exhaustive
This commit is contained in:
committed by
Jonas Platte
parent
fd310e5b6e
commit
c55dab7122
@@ -6,6 +6,7 @@ pub type Result<T> = std::result::Result<T, Error>;
|
||||
|
||||
/// Represents the various errors that arise when resolving state.
|
||||
#[derive(Error, Debug)]
|
||||
#[non_exhaustive]
|
||||
pub enum Error {
|
||||
/// A deserialization error.
|
||||
#[error(transparent)]
|
||||
|
||||
Reference in New Issue
Block a user