From c9fb5258d1fe2a46b57d0d4822706d3d81615ffa Mon Sep 17 00:00:00 2001 From: spv Date: Sat, 24 Aug 2024 00:24:48 +0200 Subject: [PATCH] fixed this guys garbage --- src/main.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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![]) }