From 42135a72bd8166f0f0f1aeecff5b5dd6b124aff5 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Fri, 30 Jul 2021 23:13:53 +0300 Subject: [PATCH] chore: add non_exhaustive for enums --- migra/src/errors.rs | 2 ++ 1 file changed, 2 insertions(+) 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,