Archived
1
0
Fork 0

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

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,