Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed Oct 4, 2024
1 parent d4d86fc commit d8e2dea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/mqtt/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ pub enum EventPayload<'a, E> {
Error(&'a E),
}

impl<'a, E> Display for EventPayload<'a, E>
impl<E> Display for EventPayload<'_, E>
where
E: Debug,
{
Expand Down
4 changes: 2 additions & 2 deletions src/utils/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,13 @@ impl<'b, const N: usize> Headers<'b, N> {
}
}

impl<'b, const N: usize> Default for Headers<'b, N> {
impl<const N: usize> Default for Headers<'_, N> {
fn default() -> Self {
Self::new()
}
}

impl<'b, const N: usize> crate::http::Headers for Headers<'b, N> {
impl<const N: usize> crate::http::Headers for Headers<'_, N> {
fn header(&self, name: &str) -> Option<&'_ str> {
self.get(name)
}
Expand Down

0 comments on commit d8e2dea

Please sign in to comment.