Skip to content

Commit 74b2f3e

Browse files
Formatting
1 parent ccb9567 commit 74b2f3e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/startup.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use actix_web::{web, App, HttpServer};
1414
use actix_web_flash_messages::storage::CookieMessageStore;
1515
use actix_web_flash_messages::FlashMessagesFramework;
1616
use actix_web_lab::middleware::from_fn;
17-
use secrecy::{Secret, ExposeSecret};
17+
use secrecy::{ExposeSecret, Secret};
1818
use sqlx::postgres::PgPoolOptions;
1919
use sqlx::PgPool;
2020
use std::net::TcpListener;
@@ -59,8 +59,7 @@ impl Application {
5959
}
6060

6161
pub fn get_connection_pool(configuration: &DatabaseSettings) -> PgPool {
62-
PgPoolOptions::new()
63-
.connect_lazy_with(configuration.with_db())
62+
PgPoolOptions::new().connect_lazy_with(configuration.with_db())
6463
}
6564

6665
pub struct ApplicationBaseUrl(pub String);

0 commit comments

Comments
 (0)