Format Rust code using rustfmt

This commit is contained in:
github-actions[bot] 2023-10-31 02:00:40 +00:00 committed by GitHub
parent f6112aa51e
commit 9f92368dd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()