diff options
author | Ferris Tseng <ferristseng@fastmail.fm> | 2019-10-14 16:09:07 -0400 |
---|---|---|
committer | Ferris Tseng <ferristseng@fastmail.fm> | 2019-10-14 16:09:07 -0400 |
commit | c0d0f75dc46331a429bf211fc682a42b57a594e3 (patch) | |
tree | d905c7c29e358a34ab930713f794dc9decef19ce /README.md | |
parent | e4a1d4bf78ca07227ecc41d715dd9397a9a7ee3e (diff) |
updating doc tests
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -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 |