Make util use uniform

This commit is contained in:
Luke Harding 2024-05-02 21:10:11 -04:00
parent 0e7f15786d
commit 2f856a3022

View File

@ -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.