diff --git a/Cargo.toml b/Cargo.toml index 281a0fe..5599f81 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -43,12 +43,12 @@ tower = { version = "0.4.13", default-features = false } tower-http = { version = "0.4.0", features = ["trace"] } tracing = { version = "0.1.37" } tracing-subscriber = { version = "0.3.17", features = ["env-filter"] } -url = "2.4.0" uuid = { version = "1.3.4", features = ["v4"] } walkdir = "2.3.3" [dev-dependencies] serde_json = "1.0.99" +url = "2.4.0" [profile.release] lto = "fat" diff --git a/src/wg.rs b/src/wg.rs index be62994..9b2093d 100644 --- a/src/wg.rs +++ b/src/wg.rs @@ -3,7 +3,6 @@ use std::{collections::HashMap, sync::Arc, time::Duration}; use reqwest::{Client, ClientBuilder}; use serde::Deserialize; use tracing::instrument; -use url::Url; use crate::prelude::*; @@ -61,7 +60,7 @@ impl Wg { pub async fn get_vehicles_stats(&self, account_id: u32) -> Result> { let result = self .client - .get(Url::parse_with_params( + .get(url::Url::parse_with_params( "https://api.wotblitz.eu/wotb/tanks/stats/", &[ ("application_id", self.application_id.as_str()),