Skip to content

Commit 5e8e90f

Browse files
committed
Fix formatting
1 parent 88829bd commit 5e8e90f

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

rust/hermes-ipfs/examples/pubsub.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
//! * The task that reads lines from stdin and publishes them as either node.
1515
use std::io::Write;
1616

17-
use futures::{pin_mut, FutureExt, StreamExt};
17+
use futures::{FutureExt, StreamExt, pin_mut};
1818
use hermes_ipfs::HermesIpfs;
1919
use rustyline_async::Readline;
2020

rust/hermes-ipfs/src/lib.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,14 @@
55
use std::{convert::Infallible, str::FromStr};
66

77
use derive_more::{Display, From, Into};
8-
use futures::{pin_mut, stream::BoxStream, StreamExt};
8+
use futures::{StreamExt, pin_mut, stream::BoxStream};
99
/// IPFS Content Identifier.
1010
pub use ipld_core::cid::Cid;
1111
/// IPLD
1212
pub use ipld_core::ipld::Ipld;
1313
use libp2p::gossipsub::MessageId as PubsubMessageId;
1414
/// `rust_ipfs` re-export.
1515
pub use rust_ipfs;
16-
/// Peer Info type.
17-
pub use rust_ipfs::p2p::PeerInfo;
18-
/// Enum for specifying paths in IPFS.
19-
pub use rust_ipfs::path::IpfsPath;
20-
/// Storage type for IPFS node.
21-
pub use rust_ipfs::repo::StorageTypes;
2216
/// Server, Client, or Auto mode
2317
pub use rust_ipfs::DhtMode;
2418
/// Server, Client, or Auto mode
@@ -27,9 +21,15 @@ pub use rust_ipfs::Ipfs;
2721
pub use rust_ipfs::Multiaddr;
2822
/// Peer ID type.
2923
pub use rust_ipfs::PeerId;
24+
/// Peer Info type.
25+
pub use rust_ipfs::p2p::PeerInfo;
26+
/// Enum for specifying paths in IPFS.
27+
pub use rust_ipfs::path::IpfsPath;
28+
/// Storage type for IPFS node.
29+
pub use rust_ipfs::repo::StorageTypes;
3030
use rust_ipfs::{
31-
builder::IpfsBuilder, dag::ResolveError, dummy, gossipsub::IntoGossipsubTopic, unixfs::AddOpt,
32-
GossipsubMessage, NetworkBehaviour, Quorum, ToRecordKey,
31+
GossipsubMessage, NetworkBehaviour, Quorum, ToRecordKey, builder::IpfsBuilder,
32+
dag::ResolveError, dummy, gossipsub::IntoGossipsubTopic, unixfs::AddOpt,
3333
};
3434

3535
#[derive(Debug, Display, From, Into)]

0 commit comments

Comments
 (0)