From bcd5d60a31b5aaeca82e564c81b2b3a8f5c7d4f5 Mon Sep 17 00:00:00 2001 From: Devdutt Shenoi <devdutt@bytebeam.io> Date: Wed, 20 Mar 2024 18:28:20 +0000 Subject: [PATCH] drop loc --- rumqttc/src/eventloop.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/rumqttc/src/eventloop.rs b/rumqttc/src/eventloop.rs index 13300c5e9..cdffa0631 100644 --- a/rumqttc/src/eventloop.rs +++ b/rumqttc/src/eventloop.rs @@ -455,10 +455,7 @@ async fn mqtt_connect( connect.keep_alive = keep_alive; connect.clean_session = clean_session; connect.last_will = last_will; - - if let Some(login) = options.credentials() { - connect.login = Some(login); - } + connect.login = options.credentials(); // send mqtt connect packet network.connect(connect).await?;