Skip to content

Commit

Permalink
drop loc
Browse files Browse the repository at this point in the history
  • Loading branch information
Devdutt Shenoi committed Mar 20, 2024
1 parent 7f93f31 commit bcd5d60
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions rumqttc/src/eventloop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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?;
Expand Down

0 comments on commit bcd5d60

Please sign in to comment.