Skip to content

Commit 73548ff

Browse files
committed
chore: fmt code
1 parent ae6c10f commit 73548ff

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/p2p/transport.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,14 +210,14 @@ pub(crate) fn build_transport(
210210
use crate::p2p::transport::dual_transport::SelectSecurityUpgrade;
211211
#[cfg(feature = "dns")]
212212
use libp2p::dns::tokio::Transport as TokioDnsConfig;
213+
#[cfg(feature = "noise")]
214+
use libp2p::noise;
213215
#[cfg(feature = "quic")]
214216
use libp2p::quic::{tokio::Transport as TokioQuicTransport, Config as QuicConfig};
215217
#[cfg(feature = "tcp")]
216218
use libp2p::tcp::{tokio::Transport as TokioTcpTransport, Config as GenTcpConfig};
217219
#[cfg(feature = "tls")]
218220
use libp2p::tls;
219-
#[cfg(feature = "noise")]
220-
use libp2p::noise;
221221

222222
let transport = match enable_memory_transport {
223223
true => Either::Left(MemoryTransport::new()),

src/repo/datastore/either.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,7 @@ impl<L: PinStore, R: PinStore> PinStore for Either<L, R> {
7272
) -> Result<(), Error> {
7373
match self {
7474
Either::Left(datastore) => datastore.insert_recursive_pin(target, referenced).await,
75-
Either::Right(datastore) => {
76-
datastore.insert_recursive_pin(target, referenced).await
77-
}
75+
Either::Right(datastore) => datastore.insert_recursive_pin(target, referenced).await,
7876
}
7977
}
8078

@@ -92,9 +90,7 @@ impl<L: PinStore, R: PinStore> PinStore for Either<L, R> {
9290
) -> Result<(), Error> {
9391
match self {
9492
Either::Left(datastore) => datastore.remove_recursive_pin(target, referenced).await,
95-
Either::Right(datastore) => {
96-
datastore.remove_recursive_pin(target, referenced).await
97-
}
93+
Either::Right(datastore) => datastore.remove_recursive_pin(target, referenced).await,
9894
}
9995
}
10096

0 commit comments

Comments
 (0)