This is an automated email from the ASF dual-hosted git repository.

hubcio pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iggy.git


The following commit(s) were added to refs/heads/master by this push:
     new 1284e3044 fix(partitions): handle clippy with poll diagnostics 
disabled (#4203)
1284e3044 is described below

commit 1284e3044625a63624715d42e288b1d6849fb6cb
Author: diegomrsantos <[email protected]>
AuthorDate: Thu Sep 17 11:48:20 2026 +0200

    fix(partitions): handle clippy with poll diagnostics disabled (#4203)
---
 core/partitions/src/poll_plan.rs | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/core/partitions/src/poll_plan.rs b/core/partitions/src/poll_plan.rs
index a4397f371..8c3ca7131 100644
--- a/core/partitions/src/poll_plan.rs
+++ b/core/partitions/src/poll_plan.rs
@@ -873,6 +873,13 @@ impl DiskReadPlan {
     }
 
     /// Read one chunk for a disk poll, retrying transient IO failures.
+    #[cfg_attr(
+        not(feature = "poll-diagnostics"),
+        allow(
+            clippy::needless_pass_by_ref_mut,
+            reason = "The mutable reference is needed to update counters when 
poll diagnostics are enabled"
+        )
+    )]
     async fn read_chunk_with_retry(
         &self,
         file: &compio::fs::File,

Reply via email to