Fix clippy 2

This commit is contained in:
Dessalines 2022-11-05 22:45:06 -04:00
parent 8b0bd24ef8
commit ea688c8a69

View file

@ -165,7 +165,9 @@ pub async fn build_db_pool(settings: &Settings) -> Result<DbPool, LemmyError> {
} }
pub async fn build_db_pool_for_tests() -> DbPool { pub async fn build_db_pool_for_tests() -> DbPool {
build_db_pool_settings_opt(None).await.unwrap() build_db_pool_settings_opt(None)
.await
.expect("db pool missing")
} }
fn get_database_url(settings: Option<&Settings>) -> String { fn get_database_url(settings: Option<&Settings>) -> String {