From d1cabea3b1153c743df18991b929a96909d21bcc Mon Sep 17 00:00:00 2001 From: Sebastien Chapuis Date: Mon, 4 Mar 2024 10:41:41 +0100 Subject: [PATCH] Run `cargo fmt` --- p2p/src/channels/rpc/p2p_channels_rpc_actions.rs | 2 +- tools/bootstrap-sandbox/src/client.rs | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/p2p/src/channels/rpc/p2p_channels_rpc_actions.rs b/p2p/src/channels/rpc/p2p_channels_rpc_actions.rs index 15d66f607..c9b167055 100644 --- a/p2p/src/channels/rpc/p2p_channels_rpc_actions.rs +++ b/p2p/src/channels/rpc/p2p_channels_rpc_actions.rs @@ -93,7 +93,7 @@ impl redux::EnablingCondition for P2pChannelsRpcAction { false }; } - + state.peers.get(peer_id) .filter(|p| !p.is_libp2p() || request.kind().supported_by_libp2p()) .and_then(|p| p.status.as_ready()) diff --git a/tools/bootstrap-sandbox/src/client.rs b/tools/bootstrap-sandbox/src/client.rs index 7170d13ed..a9257368a 100644 --- a/tools/bootstrap-sandbox/src/client.rs +++ b/tools/bootstrap-sandbox/src/client.rs @@ -79,12 +79,9 @@ impl Client { if let (Some(peer_id), Some(stream_id)) = (self.peer, self.stream) { if let Some(query) = query.take() { - self.swarm.behaviour_mut().query::( - peer_id, - stream_id, - self.id, - query, - )?; + self.swarm + .behaviour_mut() + .query::(peer_id, stream_id, self.id, query)?; self.id += 1; } }