From 84b161ddd6d1cb1c347f81d47ecf852bec1c2740 Mon Sep 17 00:00:00 2001 From: Dull Bananas Date: Fri, 26 Jul 2024 20:05:39 +0000 Subject: [PATCH] fix --- crates/db_schema/src/utils.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) 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)