From 7771913b589a5483e801682ef7eb1fd174107a0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Garillot?= Date: Fri, 29 Nov 2024 12:45:35 -0500 Subject: [PATCH] chore: clippy --- src/channel.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/channel.rs b/src/channel.rs index 1977c42..72faabb 100644 --- a/src/channel.rs +++ b/src/channel.rs @@ -30,7 +30,7 @@ pub struct Permit<'a, T> { _permit: mpsc::Permit<'a, T>, } -impl<'a, T> Permit<'a, T> { +impl Permit<'_, T> { /// Send a value using this permit pub fn send(self, value: T) { self._permit.send(value); @@ -130,7 +130,7 @@ impl Receiver { pub async fn recv(&mut self) -> Option { debug!("waiting to receive value"); let msg = self.inner.recv().await; - if let Some(_) = &msg { + if msg.is_some() { self.gauge.dec(); debug!("value received successfully"); } else {