Formatting

This commit is contained in:
Luca Palmieri 2023-09-21 08:11:35 +02:00
parent 09d928a13a
commit 68dcf2ea68

View file

@ -14,7 +14,7 @@ use actix_web::{web, App, HttpServer};
use actix_web_flash_messages::storage::CookieMessageStore;
use actix_web_flash_messages::FlashMessagesFramework;
use actix_web_lab::middleware::from_fn;
use secrecy::{Secret, ExposeSecret};
use secrecy::{ExposeSecret, Secret};
use sqlx::postgres::PgPoolOptions;
use sqlx::PgPool;
use std::net::TcpListener;
@ -59,8 +59,7 @@ impl Application {
}
pub fn get_connection_pool(configuration: &DatabaseSettings) -> PgPool {
PgPoolOptions::new()
.connect_lazy_with(configuration.with_db())
PgPoolOptions::new().connect_lazy_with(configuration.with_db())
}
pub struct ApplicationBaseUrl(pub String);