summaryrefslogtreecommitdiffstats
path: root/ipfs-api
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 /ipfs-api
parente4a1d4bf78ca07227ecc41d715dd9397a9a7ee3e (diff)
updating doc tests
Diffstat (limited to 'ipfs-api')
-rw-r--r--ipfs-api/src/lib.rs18
1 files changed, 7 insertions, 11 deletions
diff --git a/ipfs-api/src/lib.rs b/ipfs-api/src/lib.rs
index 33fe085..40a1f3f 100644
--- a/ipfs-api/src/lib.rs
+++ b/ipfs-api/src/lib.rs
@@ -49,6 +49,7 @@
//! })
//! .map_err(|e| eprintln!("{}", e));
//!
+//! # #[cfg(feature = "hyper")]
//! hyper::rt::run(req);
//! # }
//! ```
@@ -75,11 +76,8 @@
//! })
//! .map_err(|e| eprintln!("{}", e));
//!
-//! actix_rt::System::new("test").block_on(lazy(|| {
-//! req.and_then(|_| {
-//! Ok(())
-//! })
-//! }));
+//! # #[cfg(feature = "actix")]
+//! actix_rt::System::new("test").block_on(req);
//! # }
//! ```
//!
@@ -110,6 +108,7 @@
//! })
//! .map_err(|e| eprintln!("{}", e));
//!
+//! # #[cfg(feature = "hyper")]
//! hyper::rt::run(req);
//! # }
//! ```
@@ -117,8 +116,8 @@
//! #### With Actix
//!
//! ```no_run
-//! # extern crate futures;
//! # extern crate actix_rt;
+//! # extern crate futures;
//! # extern crate ipfs_api;
//! #
//! use futures::{Future, lazy, Stream};
@@ -139,11 +138,8 @@
//! })
//! .map_err(|e| eprintln!("{}", e));
//!
-//! actix_rt::System::new("test").block_on(lazy(|| {
-//! req.and_then(|_| {
-//! Ok(())
-//! })
-//! }));
+//! # #[cfg(feature = "actix")]
+//! actix_rt::System::new("test").block_on(req);
//! # }
//! ```
//!