Replace dead_code with rest-api-biome feature guard
The constructor for credentials store is only used by the biome rest-api module,
so we're guarding it with its feature guard.
@@ -39,8 +39,7 @@ impl SplinterCredentialsStore {
/// # Arguments
///
/// * `connection_pool`: connection pool to the database
- // Allow dead code if diesel feature is not enabled
- #[allow(dead_code)]
+ #[cfg(feature = "biome-rest-api")]
pub fn new(connection_pool: ConnectionPool) -> SplinterCredentialsStore {
SplinterCredentialsStore { connection_pool }
}
