diff --git a/crates/db_schema/src/utils.rs b/crates/db_schema/src/utils.rs index 72c6873cd..6c02d241c 100644 --- a/crates/db_schema/src/utils.rs +++ b/crates/db_schema/src/utils.rs @@ -1,12 +1,4 @@ -use crate::{ - diesel::ExpressionMethods, - newtypes::{DbUrl, CommentSortType, PersonId}, - schema::community, - schema_setup, - CommentSortType, - CommunityVisibility, - SortType, -}; +use crate::{newtypes::DbUrl, schema_setup, CommentSortType, SortType}; use chrono::{DateTime, TimeDelta, Utc}; use deadpool::Runtime; use diesel::{ @@ -435,7 +427,7 @@ pub async fn build_db_pool() -> LemmyResult { // provide a setup function which handles creating the connection let mut config = ManagerConfig::default(); config.custom_setup = Box::new(establish_connection); - let manager = AsyncDieselConnectionManager::::new_with_config(&db_url, config); + let manager = AsyncDieselConnectionManager::::new_with_config(db_url, config); let pool = Pool::builder(manager) .max_size(SETTINGS.database.pool_size) .runtime(Runtime::Tokio1)