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
|
/// Migra error
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
|
#[non_exhaustive]
|
||||||
pub enum Error {
|
pub enum Error {
|
||||||
/// Represents database errors.
|
/// Represents database errors.
|
||||||
Db(DbError),
|
Db(DbError),
|
||||||
|
@ -54,6 +55,7 @@ impl Error {
|
||||||
|
|
||||||
/// All kinds of errors with witch this crate works.
|
/// All kinds of errors with witch this crate works.
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
|
#[non_exhaustive]
|
||||||
pub enum DbKind {
|
pub enum DbKind {
|
||||||
/// Failed to database connection.
|
/// Failed to database connection.
|
||||||
DatabaseConnection,
|
DatabaseConnection,
|
||||||
|
|
Reference in a new issue