mirror of
https://github.com/itsKaynine/electron-injector.git
synced 2026-04-03 09:46:32 +02:00
fix: linting issues from clippy
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user