chore: add non_exhaustive for enums

This commit is contained in:
Dmitriy Pleshevskiy 2021-07-30 23:13:53 +03:00
parent 5e28aa9d4c
commit 42135a72bd
1 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,7 @@ pub type MigraResult<T> = Result<T, Error>;
/// Migra error
#[derive(Debug)]
#[non_exhaustive]
pub enum Error {
/// Represents database errors.
Db(DbError),
@ -54,6 +55,7 @@ impl Error {
/// All kinds of errors with witch this crate works.
#[derive(Debug)]
#[non_exhaustive]
pub enum DbKind {
/// Failed to database connection.
DatabaseConnection,