Removed unneeded imports

This commit is contained in:
2026-05-10 10:26:16 +02:00
parent 33df619c8d
commit 535d940857
5 changed files with 31 additions and 44 deletions

View File

@@ -1,5 +1,3 @@
#![allow(unused_imports)]
/// Cookie and JWT authentication utilities
mod cookie;
/// Environment configuration loading
@@ -13,18 +11,12 @@ mod router;
use std::sync::Arc;
use axum::{
Router,
http::{
HeaderValue, Method,
header::{ACCEPT, AUTHORIZATION, CONTENT_TYPE},
},
routing,
use axum::http::{
HeaderValue, Method,
header::{ACCEPT, AUTHORIZATION, CONTENT_TYPE},
};
use dotenv::dotenv;
use models::*;
use router::create_router;
use serde::{Deserialize, Serialize};
use sqlx::{PgPool, postgres::PgPoolOptions};
use tower_http::cors::CorsLayer;
@@ -65,7 +57,7 @@ async fn main() {
dotenv().ok();
let env = Env::load();
let database_url = &env.db_url;
// Establish connection pool to PostgreSQL
let pool = match PgPoolOptions::new().connect(&database_url).await {
Ok(pool) => {