Skip to content

Commit

Permalink
chore: rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
maccesch committed Nov 10, 2024
1 parent 0bdccb6 commit b0ed8c1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/use_websocket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ where
Tx: 'static,
Rx: 'static,
C: Encoder<Tx> + Decoder<Rx>,
C: HybridEncoder<Tx, <C as Encoder<Tx>>::Encoded, Error=<C as Encoder<Tx>>::Error>,
C: HybridDecoder<Rx, <C as Decoder<Rx>>::Encoded, Error=<C as Decoder<Rx>>::Error>,
C: HybridEncoder<Tx, <C as Encoder<Tx>>::Encoded, Error = <C as Encoder<Tx>>::Error>,
C: HybridDecoder<Rx, <C as Decoder<Rx>>::Encoded, Error = <C as Decoder<Rx>>::Error>,
{
use_websocket_with_options::<Tx, Rx, C>(url, UseWebSocketOptions::default())
}
Expand All @@ -267,8 +267,8 @@ where
Tx: 'static,
Rx: 'static,
C: Encoder<Tx> + Decoder<Rx>,
C: HybridEncoder<Tx, <C as Encoder<Tx>>::Encoded, Error=<C as Encoder<Tx>>::Error>,
C: HybridDecoder<Rx, <C as Decoder<Rx>>::Encoded, Error=<C as Decoder<Rx>>::Error>,
C: HybridEncoder<Tx, <C as Encoder<Tx>>::Encoded, Error = <C as Encoder<Tx>>::Error>,
C: HybridDecoder<Rx, <C as Decoder<Rx>>::Encoded, Error = <C as Decoder<Rx>>::Error>,
{
let url = normalize_url(url);

Expand Down Expand Up @@ -310,8 +310,8 @@ where
if !manually_closed_ref.get_value()
&& !reconnect_limit.is_exceeded_by(reconnect_times_ref.get_value())
&& ws_signal
.get_untracked()
.map_or(false, |ws: WebSocket| ws.ready_state() != WebSocket::OPEN)
.get_untracked()
.map_or(false, |ws: WebSocket| ws.ready_state() != WebSocket::OPEN)
&& reconnect_timer_ref.get_value().is_none()
{
reconnect_timer_ref.set_value(
Expand All @@ -327,7 +327,7 @@ where
},
Duration::from_millis(reconnect_interval),
)
.ok(),
.ok(),
);
}
}))
Expand Down

0 comments on commit b0ed8c1

Please sign in to comment.