From a76bfc0eb36960ca0d46321ea18d0942f3192ece Mon Sep 17 00:00:00 2001 From: Lee Smet Date: Thu, 18 Sep 2025 17:10:25 +0200 Subject: [PATCH] Format mycelium-api Signed-off-by: Lee Smet --- mycelium-api/src/rpc.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/mycelium-api/src/rpc.rs b/mycelium-api/src/rpc.rs index c8743ab..39515d6 100644 --- a/mycelium-api/src/rpc.rs +++ b/mycelium-api/src/rpc.rs @@ -2,7 +2,7 @@ mod spec; -use std::net::{SocketAddr, Ipv6Addr}; +use std::net::{Ipv6Addr, SocketAddr}; #[cfg(feature = "message")] use std::ops::Deref; use std::str::FromStr; @@ -335,13 +335,7 @@ where debug!(?remote, "Attempting to connect remote proxy via RPC"); // Attempt to connect; map error to "no proxy available/valid" like HTTP 404 counterpart - let res = self - .state - .node - .lock() - .await - .connect_proxy(remote) - .await; + let res = self.state.node.lock().await.connect_proxy(remote).await; match res { Ok(addr) => Ok(addr),