Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed Nov 5, 2024
1 parent 939e1e0 commit 7873b34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mqtt/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -889,14 +889,14 @@ impl EspAsyncMqttClient {
command: AsyncCommand::Unsubscribe,
topic: caps
.map(|cap| alloc::vec::Vec::with_capacity(cap.1))
.unwrap_or_else(|| alloc::vec::Vec::new()),
.unwrap_or(alloc::vec::Vec::new()),
payload: caps
.map(|cap| alloc::vec::Vec::with_capacity(cap.2))
.unwrap_or_else(|| alloc::vec::Vec::new()),
.unwrap_or(alloc::vec::Vec::new()),
result: Ok(0),
broker_uri: caps
.map(|cap| alloc::vec::Vec::with_capacity(cap.0))
.unwrap_or_else(|| alloc::vec::Vec::new()),
.unwrap_or(alloc::vec::Vec::new()),
};
// Repeatedly share a reference to the work until the channel is closed.
// The receiver will replace the data with the next work item, then wait for
Expand Down

0 comments on commit 7873b34

Please sign in to comment.