From 9f92368dd1f83b66daf2f427ac9676cbfcab6adb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 31 Oct 2023 02:00:40 +0000 Subject: [PATCH] Format Rust code using rustfmt --- src/net2/mod.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/net2/mod.rs b/src/net2/mod.rs index c7d2deb2..66ee9af4 100644 --- a/src/net2/mod.rs +++ b/src/net2/mod.rs @@ -520,7 +520,8 @@ async fn init_connection( let Ok(ws_url) = make_ws_url(our_ip, ip, port) else { return Err(anyhow!("failed to parse websocket url")); }; - let Ok(Ok((websocket, _response))) = timeout(TIMEOUT, connect_async(ws_url)).await else { + let Ok(Ok((websocket, _response))) = timeout(TIMEOUT, connect_async(ws_url)).await + else { return Err(anyhow!("failed to connect to target")); }; websocket.split() @@ -532,7 +533,8 @@ async fn init_connection( let Ok(ws_url) = make_ws_url(our_ip, ip, port) else { return Err(anyhow!("failed to parse websocket url")); }; - let Ok(Ok((websocket, _response))) = timeout(TIMEOUT, connect_async(ws_url)).await else { + let Ok(Ok((websocket, _response))) = timeout(TIMEOUT, connect_async(ws_url)).await + else { return Err(anyhow!("failed to connect to target")); }; websocket.split()