Skip to content

Commit

Permalink
delete dummy variant
Browse files Browse the repository at this point in the history
  • Loading branch information
pxp9 committed Apr 15, 2024
1 parent f0ae9fe commit ce47e61
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions fang/src/asynk/backend_sqlx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down Expand Up @@ -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!(),
}
}

Expand All @@ -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!(),
}
}
}
Expand Down

0 comments on commit ce47e61

Please sign in to comment.