Skip to content

Commit

Permalink
remove random object creation
Browse files Browse the repository at this point in the history
  • Loading branch information
zefanjajobse committed Feb 17, 2024
1 parent ca5200b commit b055a0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ impl EventHandler for Handler {
}
}

async fn get(game: &String) -> Result<MarneServerList> {
async fn get(game: &str) -> Result<MarneServerList> {
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/",
};
Expand Down

0 comments on commit b055a0d

Please sign in to comment.