From 7ffaa8cf9a188131a3575b5f6230946e27df191b Mon Sep 17 00:00:00 2001 From: robviren Date: Sat, 2 Jan 2021 07:35:42 -0600 Subject: [PATCH] Minor changes to simple example to get rid of warnings and error. --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ce15e9f..4956316 100644 --- a/README.md +++ b/README.md @@ -25,11 +25,14 @@ Version 2.0.0 was released recently and changed some APIs. See the [changelog] f In its simplest form, ureq looks like this: ```rust +use ureq; + fn main() -> Result<(), ureq::Error> { let body: String = ureq::get("http://example.com") .set("Example-Header", "header value") - .call()? + .call() .into_string()?; + println!("{:#?}",body); Ok(()) } ```