mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-14 16:14:48 +01:00
Fix clippy lints
This commit is contained in:
@@ -4,7 +4,7 @@ pub(crate) async fn query(site: &str) -> String {
|
||||
let client = reqwest::Client::new();
|
||||
|
||||
let response = client.get(site).header(USER_AGENT, "cultivation").send().await.unwrap();
|
||||
return response.text().await.unwrap();
|
||||
response.text().await.unwrap()
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
@@ -14,5 +14,5 @@ pub(crate) async fn valid_url(url: String) -> bool {
|
||||
|
||||
let response = client.get(url).header(USER_AGENT, "cultivation").send().await.unwrap();
|
||||
|
||||
return response.status().as_str() == "200";
|
||||
response.status().as_str() == "200"
|
||||
}
|
||||
Reference in New Issue
Block a user