Make util use uniform
This commit is contained in:
parent
0e7f15786d
commit
2f856a3022
@ -5,8 +5,6 @@ use std::env;
|
||||
|
||||
use actix_web::{App, get, HttpResponse, HttpServer, Responder};
|
||||
|
||||
use crate::util::warn_println;
|
||||
|
||||
mod util;
|
||||
|
||||
#[actix_web::main]
|
||||
@ -19,7 +17,7 @@ async fn main() -> std::io::Result<()> {
|
||||
|
||||
// Load .env
|
||||
if let Err(e) = dotenvy::dotenv() {
|
||||
warn_println(format!("Failed to load dotenv: {}", e))
|
||||
util::warn_println(format!("Failed to load dotenv: {}", e))
|
||||
};
|
||||
|
||||
// If env variable for port or bind_addr is present use that instead of default.
|
||||
|
Loading…
Reference in New Issue
Block a user