diff --git a/src/main.rs b/src/main.rs index e7a11a9..2b753fa 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,14 @@ -fn main() { - println!("Hello, world!"); +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); + } + + println!(body); + Ok(vec![]) +} + +#[tokio::main] +async fn main() { + get_qs().await; }