From f2398b650ca2587c59857a274e1de1b24dd0a758 Mon Sep 17 00:00:00 2001 From: Sandro Eiler Date: Mon, 1 Jan 2024 21:03:40 +0100 Subject: [PATCH] style: format code --- src/main.rs | 2 +- tests/health_check.rs | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index 3ded377..4dab2d4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,5 @@ -use learn_axum::startup; use learn_axum::configuration::get_configuration; +use learn_axum::startup; use tokio::net::TcpListener; #[tokio::main] diff --git a/tests/health_check.rs b/tests/health_check.rs index b54208b..00e736a 100644 --- a/tests/health_check.rs +++ b/tests/health_check.rs @@ -1,7 +1,7 @@ +use learn_axum::configuration::get_configuration; +use sqlx::{Connection, PgConnection}; use std::net::SocketAddr; use tokio::net::TcpListener; -use sqlx::{PgConnection, Connection}; -use learn_axum::configuration::get_configuration; struct TestApp { address: String, @@ -92,7 +92,5 @@ async fn spawn_app() -> TestApp { .await .unwrap(); }); - TestApp { - address - } + TestApp { address } }