chore: add non_exhaustive for enums
This commit is contained in:
parent
5e28aa9d4c
commit
42135a72bd
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||
|
|
Reference in a new issue