From 57300edbc46e3ff07524e3aca4f05097d0d44aa4 Mon Sep 17 00:00:00 2001 From: Moses Gathuku Date: Wed, 30 Oct 2019 22:40:49 +0300 Subject: [PATCH] use README.md traits to use dynamic library (#695) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d20bcb1..0318ab7 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Async: use std::collections::HashMap; #[tokio::main] -async fn main() -> Result<(), Box> { +async fn main() -> Result<(), Box> { let resp: HashMap = reqwest::get("https://httpbin.org/ip") .await? .json() @@ -41,7 +41,7 @@ Blocking: ```rust,no_run use std::collections::HashMap; -fn main() -> Result<(), Box> { +fn main() -> Result<(), Box> { let resp: HashMap = reqwest::blocking::get("https://httpbin.org/ip")? .json()?; println!("{:#?}", resp);