diff --git a/src/main.rs b/src/main.rs index 4856ff5..6253a07 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,12 +2,11 @@ use reqwest; use tokio; async fn get_qs() -> reqwest::Result> { - let body = reqwest::get("https://stackoverflow.com/questions/tagged/python").await; - if let Err(e) = body { - return Err(e); - } + let body = reqwest::get("https://stackoverflow.com/questions/tagged/python") + .await + .unwrap(); - println!("{}", body); + println!("{}", body.text().await.unwrap()); Ok(vec![]) }