From 9dd126957d74ec064ff1844e3f4403e068117e11 Mon Sep 17 00:00:00 2001 From: niliara-edu Date: Mon, 27 Jan 2025 08:01:41 +0100 Subject: last minute changes --- src/main.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index fab6dd5..2f3449d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,8 +1,8 @@ mod api; mod auth; mod database; -mod extractors; mod doc; +mod extractors; use actix_web::web::Redirect; use actix_web::{web, App, HttpServer, Responder}; @@ -33,9 +33,7 @@ async fn main() -> std::io::Result<()> { let db = Arc::new(db_raw); /* Get jwt secret from env */ - let jwt_secret = env::var("SECRET") - .expect("environment variable SECRET is *probably not setted up!!") - .to_string(); + let jwt_secret: String = env!("SECRET").to_owned(); /* Application data struct */ let app_state = AppState { -- cgit v1.2.3