Remove dead_code macro
All checks were successful
Build and push container image / build (push) Successful in 7m19s

This commit is contained in:
toast 2023-12-30 10:24:38 +11:00
parent fd28c21399
commit 151a4429c1
3 changed files with 2 additions and 3 deletions

2
Cargo.lock generated
View File

@ -794,7 +794,7 @@ dependencies = [
[[package]] [[package]]
name = "kon" name = "kon"
version = "0.1.3" version = "0.1.4"
dependencies = [ dependencies = [
"cargo_toml", "cargo_toml",
"gamedig", "gamedig",

View File

@ -1,6 +1,6 @@
[package] [package]
name = "kon" name = "kon"
version = "0.1.3" version = "0.1.4"
rust-version = "1.74" rust-version = "1.74"
edition = "2021" edition = "2021"

View File

@ -14,7 +14,6 @@ use std::{
env::var env::var
}; };
#[allow(dead_code)] // Smh...
fn query_server() -> Result<Response, Error> { fn query_server() -> Result<Response, Error> {
let server_ip = var("ATS_SERVER_IP").expect("Expected a \"ATS_SERVER_IP\" in the envvar but none was found"); let server_ip = var("ATS_SERVER_IP").expect("Expected a \"ATS_SERVER_IP\" in the envvar but none was found");
let addr = SocketAddr::from_str(&server_ip).unwrap(); let addr = SocketAddr::from_str(&server_ip).unwrap();