fixed this guys garbage

This commit is contained in:
spv 2024-08-24 00:24:48 +02:00
parent 9dd3265bfa
commit c9fb5258d1
No known key found for this signature in database
GPG Key ID: 7638A987CE28ADFA

View File

@ -2,12 +2,11 @@ use reqwest;
use tokio; use tokio;
async fn get_qs() -> reqwest::Result<Vec<String>> { async fn get_qs() -> reqwest::Result<Vec<String>> {
let body = reqwest::get("https://stackoverflow.com/questions/tagged/python").await; let body = reqwest::get("https://stackoverflow.com/questions/tagged/python")
if let Err(e) = body { .await
return Err(e); .unwrap();
}
println!("{}", body); println!("{}", body.text().await.unwrap());
Ok(vec![]) Ok(vec![])
} }