mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-19 16:01:01 +00:00
Fix clippy 2
This commit is contained in:
parent
8b0bd24ef8
commit
ea688c8a69
1 changed files with 3 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue