From c0d0f75dc46331a429bf211fc682a42b57a594e3 Mon Sep 17 00:00:00 2001 From: Ferris Tseng Date: Mon, 14 Oct 2019 16:09:07 -0400 Subject: updating doc tests --- README.md | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 7899a71..4ce6302 100644 --- a/README.md +++ b/README.md @@ -63,11 +63,7 @@ let req = client }) .map_err(|e| eprintln!("{}", e)); -actix_rt::System::new("test").block_on(lazy(|| { - req.and_then(|_| { - Ok(()) - }) -})); +actix_rt::System::new("test").block_on(req); ``` #### Reading a file from IPFS @@ -117,11 +113,7 @@ let req = client }) .map_err(|e| eprintln!("{}", e)); -actix_rt::System::new("test").block_on(lazy(|| { - req.and_then(|_| { - Ok(()) - }) -})); +actix_rt::System::new("test").block_on(req); ``` #### Additional Examples -- cgit v1.2.3