summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 2 insertions, 4 deletions
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 {