diff --git a/src/main.rs b/src/main.rs index 62ddd7a..088d06c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -153,9 +153,9 @@ impl EventHandler for Handler { } } -async fn get(game: &String) -> Result { +async fn get(game: &str) -> Result { let client = reqwest::Client::new(); - let url = match game.as_str() { + let url = match game { "bfv" => "https://marne.io/api/v/srvlst/", _ => "https://marne.io/api/srvlst/", };