From 0dd461f03365b2e8c5719cb541f8992d1b763266 Mon Sep 17 00:00:00 2001 From: Dopplerian Date: Mon, 15 Apr 2024 16:00:00 +0200 Subject: [PATCH] fmt fix --- fang/src/asynk/backend_sqlx.rs | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/fang/src/asynk/backend_sqlx.rs b/fang/src/asynk/backend_sqlx.rs index 144e871..b8be9bb 100644 --- a/fang/src/asynk/backend_sqlx.rs +++ b/fang/src/asynk/backend_sqlx.rs @@ -39,7 +39,11 @@ pub(crate) enum BackendSqlX { #[cfg(feature = "asynk-mysql")] MySql, - #[cfg(not(any(feature = "asynk-postgres", feature = "asynk-sqlite", feature = "asynk-mysql")))] + #[cfg(not(any( + feature = "asynk-postgres", + feature = "asynk-sqlite", + feature = "asynk-mysql" + )))] #[allow(dead_code)] Dummy, } @@ -109,7 +113,11 @@ 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")))] + #[cfg(not(any( + feature = "asynk-postgres", + feature = "asynk-sqlite", + feature = "asynk-mysql" + )))] BackendSqlX::Dummy => unreachable!(), } } @@ -123,7 +131,11 @@ 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")))] + #[cfg(not(any( + feature = "asynk-postgres", + feature = "asynk-sqlite", + feature = "asynk-mysql" + )))] BackendSqlX::Dummy => unreachable!(), } }