diff options
Diffstat (limited to 'ipfs-api/examples/pubsub.rs')
-rw-r--r-- | ipfs-api/examples/pubsub.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ipfs-api/examples/pubsub.rs b/ipfs-api/examples/pubsub.rs index 876ec04..f773841 100644 --- a/ipfs-api/examples/pubsub.rs +++ b/ipfs-api/examples/pubsub.rs @@ -13,7 +13,10 @@ extern crate tokio_timer; use futures::{Future, Stream}; use ipfs_api::IpfsClient; -use std::{thread, time::{Duration, Instant}}; +use std::{ + thread, + time::{Duration, Instant}, +}; use tokio_timer::Interval; static TOPIC: &'static str = "test"; @@ -65,8 +68,7 @@ fn main() { println!("received ({:?})", msg); Ok(()) - }) - .map_err(|e| eprintln!("{}", e)), + }).map_err(|e| eprintln!("{}", e)), ) } } |