Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Peyton-McKee committed Feb 23, 2024
1 parent 470a40b commit 52749af
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/mqtt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,7 @@ impl Client for MqttClient {
let topic = data.topic.to_string();
let mut payload = serverdata::ServerData::new();
payload.unit = data.unit.to_string();
payload.value = data.value
.iter()
.map(|x| x.to_string())
.collect();
payload.value = data.value.iter().map(|x| x.to_string()).collect();

/* If the client is initialized, publish the data. */
if let Some(client) = &self.client {
Expand Down

0 comments on commit 52749af

Please sign in to comment.