Skip to content

Commit 7ab6f9d

Browse files
committed
chore: fix a clippy warning
1 parent 23b2aaf commit 7ab6f9d

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/mqtt_client/engine.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -998,13 +998,13 @@ impl QuicMqttEngine {
998998
quinn_proto::Event::Stream(_stream_id) => {
999999
// Stream event (readable/writable etc)
10001000
}
1001-
quinn_proto::Event::Connected => {
1001+
quinn_proto::Event::Connected
10021002
// QUIC Handshake done. Open a bidirectional stream for MQTT.
1003-
if self.mqtt_stream.is_none() {
1004-
if let Some(stream_id) = conn.streams().open(quinn_proto::Dir::Bi) {
1005-
self.mqtt_stream = Some(stream_id);
1006-
self.mqtt_engine.connect();
1007-
}
1003+
if self.mqtt_stream.is_none() =>
1004+
{
1005+
if let Some(stream_id) = conn.streams().open(quinn_proto::Dir::Bi) {
1006+
self.mqtt_stream = Some(stream_id);
1007+
self.mqtt_engine.connect();
10081008
}
10091009
}
10101010
quinn_proto::Event::ConnectionLost { .. } => {

0 commit comments

Comments
 (0)