From a92092383af500156ee97c0ca5d5ad515edb5924 Mon Sep 17 00:00:00 2001 From: Nika Layzell Date: Mon, 1 Apr 2024 17:05:44 -0400 Subject: [PATCH] Reduce the scope of unused allow on SemaphorePermit --- src/network.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/network.rs b/src/network.rs index 56574ad5..521d287b 100644 --- a/src/network.rs +++ b/src/network.rs @@ -28,8 +28,10 @@ use crate::{ /// Wrapper for the pair of a `reqwest::Response` and the `SemaphorePermit` used /// to limit concurrent connections, with a test-only variant for mocking. enum Response<'a> { - #[allow(dead_code)] // It's ok that `SemaphorePermit` is never read. - Real(reqwest::Response, tokio::sync::SemaphorePermit<'a>), + Real( + reqwest::Response, + #[allow(unused)] tokio::sync::SemaphorePermit<'a>, + ), #[cfg(test)] Mock(Option), }