From b553bd621b92da194c3057b5e9b43a6229d7dab4 Mon Sep 17 00:00:00 2001 From: neri Date: Mon, 3 Aug 2020 01:30:45 +0200 Subject: [PATCH] remove debug env var read --- src/main.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index 0e9947c..6336a2a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -145,10 +145,10 @@ fn get_db_url() -> String { }; format!( - "postgresql://{}{}/{}", - auth, - env::var("DATABASE_HOST").unwrap_or_else(|_| "localhost".to_string()), - env::var("DATABASE_NAME").unwrap_or_else(|_| "datatrash".to_string()) + "postgresql://{auth}{host}/{name}", + auth = auth, + host = env::var("DATABASE_HOST").unwrap_or_else(|_| "localhost".to_string()), + name = env::var("DATABASE_NAME").unwrap_or_else(|_| "datatrash".to_string()) ) } @@ -178,7 +178,6 @@ struct Config { #[actix_rt::main] async fn main() -> std::io::Result<()> { - dbg!(env::var("ASDF")); if env::var("RUST_LOG").is_err() { env::set_var("RUST_LOG", "info"); }