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 7873b34 commit 3755174
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1610,7 +1610,7 @@ where
}

#[cfg(esp_idf_comp_esp_netif_enabled)]
impl<'d, T> crate::netif::asynch::NetifStatus for EspEth<'d, T> {
impl<T> crate::netif::asynch::NetifStatus for EspEth<'_, T> {
async fn is_up(&self) -> Result<bool, EspError> {
EspEth::is_up(self)
}
Expand Down
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(alloc::vec::Vec::new()),
.unwrap_or_default(),
payload: caps
.map(|cap| alloc::vec::Vec::with_capacity(cap.2))
.unwrap_or(alloc::vec::Vec::new()),
.unwrap_or_default(),
result: Ok(0),
broker_uri: caps
.map(|cap| alloc::vec::Vec::with_capacity(cap.0))
.unwrap_or(alloc::vec::Vec::new()),
.unwrap_or_default(),
};
// 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
2 changes: 1 addition & 1 deletion src/wifi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2830,7 +2830,7 @@ where
}

#[cfg(esp_idf_comp_esp_netif_enabled)]
impl<'d> crate::netif::asynch::NetifStatus for EspWifi<'d> {
impl crate::netif::asynch::NetifStatus for EspWifi<'_> {
async fn is_up(&self) -> Result<bool, EspError> {
EspWifi::is_up(self)
}
Expand Down

0 comments on commit 3755174

Please sign in to comment.