Skip to content

Commit

Permalink
worst clippy fix of all time
Browse files Browse the repository at this point in the history
  • Loading branch information
Dopplerian committed Apr 15, 2024
1 parent 201bc3b commit 9f540b7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions fang/src/asynk/backend_sqlx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ 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 @@ -105,6 +109,8 @@ 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 @@ -117,6 +123,8 @@ 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 9f540b7

Please sign in to comment.