Skip to content

Commit

Permalink
fmt fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dopplerian committed Apr 15, 2024
1 parent 9f540b7 commit 0dd461f
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions fang/src/asynk/backend_sqlx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down Expand Up @@ -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!(),
}
}
Expand All @@ -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!(),
}
}
Expand Down

0 comments on commit 0dd461f

Please sign in to comment.