summaryrefslogtreecommitdiff
path: root/ext/websocket/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/websocket/lib.rs')
-rw-r--r--ext/websocket/lib.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/websocket/lib.rs b/ext/websocket/lib.rs
index 8123f84fc..baf5c396c 100644
--- a/ext/websocket/lib.rs
+++ b/ext/websocket/lib.rs
@@ -321,7 +321,7 @@ where
Some("ws") => 80,
_ => unreachable!(),
});
- let addr = format!("{}:{}", domain, port);
+ let addr = format!("{domain}:{port}");
let tcp_socket = TcpStream::connect(addr).await?;
let socket: MaybeTlsStream<TcpStream> = match uri.scheme_str() {
@@ -359,8 +359,7 @@ where
}
.map_err(|err| {
DomExceptionNetworkError::new(&format!(
- "failed to connect to WebSocket: {}",
- err
+ "failed to connect to WebSocket: {err}"
))
})?;