diff --git a/crates/yew-hooks/src/hooks/use_websocket.rs b/crates/yew-hooks/src/hooks/use_websocket.rs index 48c0477..b7e1a59 100644 --- a/crates/yew-hooks/src/hooks/use_websocket.rs +++ b/crates/yew-hooks/src/hooks/use_websocket.rs @@ -224,10 +224,7 @@ pub fn use_websocket(url: String) -> UseWebSocketHandle { /// } /// ``` #[hook] -pub fn use_websocket_with_options( - url: String, - options: UseWebSocketOptions, -) -> UseWebSocketHandle { +pub fn use_websocket_with_options(url: String, options: UseWebSocketOptions) -> UseWebSocketHandle { let ready_state = use_state(|| UseWebSocketReadyState::Closed); let message = use_state_ptr_eq(|| None); let message_bytes = use_state_ptr_eq(|| None); diff --git a/examples/yew-app/src/routes/hooks/use_web_socket.rs b/examples/yew-app/src/routes/hooks/use_websocket.rs similarity index 100% rename from examples/yew-app/src/routes/hooks/use_web_socket.rs rename to examples/yew-app/src/routes/hooks/use_websocket.rs