diff options
author | Marcel Müller <neikos@neikos.email> | 2024-03-27 16:38:42 +0100 |
---|---|---|
committer | Marcel Müller <neikos@neikos.email> | 2024-03-27 16:46:02 +0100 |
commit | 958e026ebc4a6daef77594892e13c8abdafdcdcd (patch) | |
tree | 9d3b08c8cd16ef54445514b3269745e1ae819964 | |
parent | 16b9a4615527c9b1d3d82ddeaee7b74fdf247e2d (diff) |
Mark unused fields with underscore
They are currently being implemented
Signed-off-by: Marcel Müller <neikos@neikos.email>
-rw-r--r-- | src/client.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client.rs b/src/client.rs index 1cfc62e..f31369d 100644 --- a/src/client.rs +++ b/src/client.rs @@ -151,7 +151,7 @@ impl MqttClientConnector { let connack = loop { let can_use_auth = self.properties.authentication_data.is_some(); - let auth = match maybe_connack.get() { + let _auth = match maybe_connack.get() { mqtt_format::v5::packets::MqttPacket::Connack(connack) => break connack, mqtt_format::v5::packets::MqttPacket::Auth(auth) => { if can_use_auth { @@ -180,7 +180,7 @@ impl MqttClientConnector { if connack.reason_code == mqtt_format::v5::packets::connack::ConnackReasonCode::Success { // TODO: Read properties, configure client - return Ok(MqttClient { conn }); + return Ok(MqttClient { _conn: conn }); } // TODO: Do something with error code @@ -194,7 +194,7 @@ impl MqttClientConnector { } pub struct MqttClient { - conn: Framed<MqttConnection, MqttPacketCodec>, + _conn: Framed<MqttConnection, MqttPacketCodec>, } impl MqttClient {} |