Skip to content

Commit

Permalink
Reduce the scope of unused allow on SemaphorePermit
Browse files Browse the repository at this point in the history
  • Loading branch information
mystor authored Apr 1, 2024
1 parent 008636f commit a920923
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Bytes>),
}
Expand Down

0 comments on commit a920923

Please sign in to comment.