diff --git a/migra/src/errors.rs b/migra/src/errors.rs index 1a346a2..59af0ec 100644 --- a/migra/src/errors.rs +++ b/migra/src/errors.rs @@ -12,6 +12,7 @@ pub type MigraResult = Result; /// 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,