summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorFerris Tseng <ferristseng@fastmail.fm>2019-10-14 16:09:07 -0400
committerFerris Tseng <ferristseng@fastmail.fm>2019-10-14 16:09:07 -0400
commitc0d0f75dc46331a429bf211fc682a42b57a594e3 (patch)
treed905c7c29e358a34ab930713f794dc9decef19ce /README.md
parente4a1d4bf78ca07227ecc41d715dd9397a9a7ee3e (diff)
updating doc tests
Diffstat (limited to 'README.md')
-rw-r--r--README.md12
1 files changed, 2 insertions, 10 deletions
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