From d8e2deadf01f0f78a730d182398bfcde25393c46 Mon Sep 17 00:00:00 2001 From: ivmarkov Date: Fri, 4 Oct 2024 06:59:48 +0000 Subject: [PATCH] Clippy --- src/mqtt/client.rs | 2 +- src/utils/http.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mqtt/client.rs b/src/mqtt/client.rs index 675231f..17f98da 100644 --- a/src/mqtt/client.rs +++ b/src/mqtt/client.rs @@ -78,7 +78,7 @@ pub enum EventPayload<'a, E> { Error(&'a E), } -impl<'a, E> Display for EventPayload<'a, E> +impl Display for EventPayload<'_, E> where E: Debug, { diff --git a/src/utils/http.rs b/src/utils/http.rs index 2815df9..d2c87ab 100644 --- a/src/utils/http.rs +++ b/src/utils/http.rs @@ -175,13 +175,13 @@ impl<'b, const N: usize> Headers<'b, N> { } } -impl<'b, const N: usize> Default for Headers<'b, N> { +impl Default for Headers<'_, N> { fn default() -> Self { Self::new() } } -impl<'b, const N: usize> crate::http::Headers for Headers<'b, N> { +impl crate::http::Headers for Headers<'_, N> { fn header(&self, name: &str) -> Option<&'_ str> { self.get(name) }