From 273c457f24e4de39b349be5fcf7a92283823de72 Mon Sep 17 00:00:00 2001 From: clux Date: Fri, 2 Jan 2026 08:13:48 +0000 Subject: [PATCH 1/2] clippy fix portforward manual multiple_of 2 Signed-off-by: clux --- kube-client/src/api/portforward.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kube-client/src/api/portforward.rs b/kube-client/src/api/portforward.rs index 9fe5258e2..d2f2b060b 100644 --- a/kube-client/src/api/portforward.rs +++ b/kube-client/src/api/portforward.rs @@ -301,7 +301,7 @@ where } // Odd channels are for errors for (n - 1)/2 th port - if ch % 2 != 0 { + if !ch.is_multiple_of(2) { // A port sends at most one error message because it's considered unusable after this. if let Some(sender) = error_senders[port_index].take() { let s = String::from_utf8(bytes.into_iter().collect()) From 11b924d505d6636680b47702d82301d6a67b1920 Mon Sep 17 00:00:00 2001 From: clux Date: Fri, 2 Jan 2026 08:19:08 +0000 Subject: [PATCH 2/2] allow large error enums for now Signed-off-by: clux --- kube-runtime/src/controller/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/kube-runtime/src/controller/mod.rs b/kube-runtime/src/controller/mod.rs index 5bfd279b7..409cd89e1 100644 --- a/kube-runtime/src/controller/mod.rs +++ b/kube-runtime/src/controller/mod.rs @@ -332,6 +332,7 @@ const APPLIER_REQUEUE_BUF_SIZE: usize = 100; /// (such as triggering from arbitrary [`Stream`]s), at the cost of being a bit more verbose. #[allow(clippy::needless_pass_by_value)] #[allow(clippy::type_complexity)] +#[allow(clippy::result_large_err)] // see #1880 as an alt; https://github.com/kube-rs/kube/pull/1880 pub fn applier( mut reconciler: impl FnMut(Arc, Arc) -> ReconcilerFut, error_policy: impl Fn(Arc, &ReconcilerFut::Error, Arc) -> Action,