Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Peyton-McKee committed Feb 23, 2024
1 parent 52749af commit e52872f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mqtt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ impl Client for MqttClient {
.payload(payload.write_to_bytes().unwrap())
.finalize();

match { client.publish(msg) } {
match client.publish(msg) {
Ok(_) => (),
Err(e) => println!("Error sending message: {:?}", e),
}
Expand Down Expand Up @@ -88,7 +88,7 @@ impl MqttClient {
.server_uri(host_name)
.client_id(DFLT_CLIENT.to_string())
.finalize();
self.client = Some(match { mqtt::Client::new(create_options) } {
self.client = Some(match mqtt::Client::new(create_options) {
Ok(client) => client,
Err(e) => {
println!("Error creating the client: {:?}", e);
Expand Down

0 comments on commit e52872f

Please sign in to comment.