From 4377b26d5fda0c060cf0d498a0f8a5d8bb6f20a0 Mon Sep 17 00:00:00 2001 From: Mitchell Date: Fri, 24 Jul 2020 11:40:17 +0100 Subject: [PATCH] corrected constant format --- src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 1f86a00..595372d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,10 +7,10 @@ use crate::server::server_profile::Server; fn main(){ lazy_static!{ - static ref server_name: &'static str = "Server-01"; - static ref server_address: &'static str = "0.0.0.0:6000"; - static ref server_author: &'static str = "noreply@email.com"; - static ref SERVER: Server<'static> = Server::new(&server_name, &server_address, &server_author); + static ref SERVER_NAME: &'static str = "Server-01"; + static ref SERVER_ADDRESS: &'static str = "0.0.0.0:6000"; + static ref SERVER_AUTHOR: &'static str = "noreply@email.com"; + static ref SERVER: Server<'static> = Server::new(&SERVER_NAME, &SERVER_ADDRESS, &SERVER_AUTHOR); } /* let server_name = String::from("Server-01");