clippy stuff

This commit is contained in:
SpikeHD
2022-09-03 17:52:57 -07:00
parent 6750787bf9
commit 9bd4b9ccaf

View File

@@ -9,23 +9,19 @@ static SITE_URL: &str = "https://gamebanana.com";
#[tauri::command] #[tauri::command]
pub async fn get_download_links(mod_id: String) -> String { pub async fn get_download_links(mod_id: String) -> String {
let res = web::query(format!("{}/apiv9/Mod/{}/DownloadPage", SITE_URL, mod_id).as_str()).await; web::query(format!("{}/apiv9/Mod/{}/DownloadPage", SITE_URL, mod_id).as_str()).await
res
} }
#[tauri::command] #[tauri::command]
pub async fn list_submissions(mode: String, page: String) -> String { pub async fn list_submissions(mode: String, page: String) -> String {
let res = web::query( web::query(
format!( format!(
"{}/apiv9/Util/Game/Submissions?_idGameRow=8552&_nPage={}&_nPerpage=50&_sMode={}", "{}/apiv9/Util/Game/Submissions?_idGameRow=8552&_nPage={}&_nPerpage=50&_sMode={}",
SITE_URL, page, mode SITE_URL, page, mode
) )
.as_str(), .as_str(),
) )
.await; .await
res
} }
#[tauri::command] #[tauri::command]