fix: linting issues from clippy

This commit is contained in:
itsKaynine
2023-03-19 03:04:09 +07:00
parent b69b5ef9a2
commit f703d9be78
2 changed files with 6 additions and 8 deletions

View File

@@ -10,7 +10,7 @@ pub struct WebSocket {
impl WebSocket {
pub fn connect(address: &str) -> Result<Self, tungstenite::Error> {
let url = url::Url::parse(&address).expect("Should be a valid address");
let url = url::Url::parse(address).expect("Should be a valid address");
let (socket, response) = tungstenite::connect(url)?;
info!("WebSocket connected (status: {})", response.status());