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 actix_web::{App, get, HttpResponse, HttpServer, Responder};
|
||||||
|
|
||||||
use crate::util::warn_println;
|
|
||||||
|
|
||||||
mod util;
|
mod util;
|
||||||
|
|
||||||
#[actix_web::main]
|
#[actix_web::main]
|
||||||
@ -19,7 +17,7 @@ async fn main() -> std::io::Result<()> {
|
|||||||
|
|
||||||
// Load .env
|
// Load .env
|
||||||
if let Err(e) = dotenvy::dotenv() {
|
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.
|
// If env variable for port or bind_addr is present use that instead of default.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user