Skip to content

Commit 30ffaf7

Browse files
committed
fix: Cargo fmt
1 parent eb4c66b commit 30ffaf7

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

node/src/service/p2p/bootstrap.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
use std::collections::HashMap;
2-
use std::hash::{DefaultHasher, Hash, Hasher};
3-
use std::io::{Error, ErrorKind};
4-
use std::time::Duration;
1+
use std::{
2+
collections::HashMap,
3+
hash::{DefaultHasher, Hash, Hasher},
4+
io::{Error, ErrorKind},
5+
time::Duration,
6+
};
57

68
use libp2p::{
79
futures::StreamExt,

primitives/src/p2p.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
use std::{path::PathBuf, str::FromStr};
22

33
use ed25519_dalek::{pkcs8::DecodePrivateKey, SigningKey};
4-
use libp2p::identity::Keypair;
5-
use libp2p::{Multiaddr, PeerId};
4+
use libp2p::{Multiaddr, PeerId, identity::Keypair};
65
use serde::{de, Deserialize, Serialize, Serializer};
76

87
/// Parses a ED25519 private key into a Keypair.

storage-provider/client/examples/peer-resolver.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ use std::time::Duration;
1010

1111
use anyhow::{bail, Result};
1212
use clap::Parser;
13-
use libp2p::futures::StreamExt;
14-
use libp2p::request_response::{Message, ProtocolSupport};
15-
use libp2p::swarm::SwarmEvent;
1613
use libp2p::{
17-
noise, request_response, tcp, yamux, Multiaddr, PeerId, StreamProtocol, Swarm, SwarmBuilder,
14+
futures::StreamExt,
15+
noise,
16+
request_response::{self, Message, ProtocolSupport},
17+
swarm::SwarmEvent,
18+
tcp, yamux, Multiaddr, PeerId, StreamProtocol, Swarm, SwarmBuilder,
1819
};
1920
use primitives::p2p::{PeerIdRequest, PeerInfoResponse};
2021
use tracing_subscriber::EnvFilter;

0 commit comments

Comments
 (0)