misc-errors: Allow or make error enums non_exhaustive

This commit is contained in:
Devin Ragotzy
2021-06-29 19:27:09 -04:00
committed by Jonas Platte
parent fd310e5b6e
commit c55dab7122
7 changed files with 8 additions and 0 deletions

View File

@@ -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)]