From ce47e61a7e5994cc4e3c5dd051559109975cab7c Mon Sep 17 00:00:00 2001 From: pxp9 <48651252+pxp9@users.noreply.github.com> Date: Mon, 15 Apr 2024 16:38:39 +0200 Subject: [PATCH] delete dummy variant --- fang/src/asynk/backend_sqlx.rs | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/fang/src/asynk/backend_sqlx.rs b/fang/src/asynk/backend_sqlx.rs index b8be9bb..8f9079f 100644 --- a/fang/src/asynk/backend_sqlx.rs +++ b/fang/src/asynk/backend_sqlx.rs @@ -38,14 +38,6 @@ pub(crate) enum BackendSqlX { #[cfg(feature = "asynk-mysql")] MySql, - - #[cfg(not(any( - feature = "asynk-postgres", - feature = "asynk-sqlite", - feature = "asynk-mysql" - )))] - #[allow(dead_code)] - Dummy, } #[allow(dead_code)] @@ -113,12 +105,6 @@ impl BackendSqlX { BackendSqlX::MySql => { BackendSqlXMySQL::execute_query(_query, _pool.unwrap_mysql_pool(), _params).await } - #[cfg(not(any( - feature = "asynk-postgres", - feature = "asynk-sqlite", - feature = "asynk-mysql" - )))] - BackendSqlX::Dummy => unreachable!(), } } @@ -131,12 +117,6 @@ impl BackendSqlX { BackendSqlX::Sqlite => BackendSqlXSQLite::_name(), #[cfg(feature = "asynk-mysql")] BackendSqlX::MySql => BackendSqlXMySQL::_name(), - #[cfg(not(any( - feature = "asynk-postgres", - feature = "asynk-sqlite", - feature = "asynk-mysql" - )))] - BackendSqlX::Dummy => unreachable!(), } } }