diff --git a/kube-client/src/client/mod.rs b/kube-client/src/client/mod.rs index 62d3de510..83d87e74a 100644 --- a/kube-client/src/client/mod.rs +++ b/kube-client/src/client/mod.rs @@ -156,7 +156,7 @@ impl Client { // Error requesting .or_else(|err| err.downcast::().map(|err| Error::HyperError(*err))) // Error from another middleware - .unwrap_or_else(|err| Error::Service(err)) + .unwrap_or_else(Error::Service) })?; Ok(res) } diff --git a/kube-runtime/src/controller/mod.rs b/kube-runtime/src/controller/mod.rs index 14dd614d6..17ae6fe0f 100644 --- a/kube-runtime/src/controller/mod.rs +++ b/kube-runtime/src/controller/mod.rs @@ -246,6 +246,7 @@ const APPLIER_REQUEUE_BUF_SIZE: usize = 100; /// /// This is the "hard-mode" version of [`Controller`], which allows you some more customization /// (such as triggering from arbitrary [`Stream`]s), at the cost of being a bit more verbose. +#[allow(clippy::needless_pass_by_value)] pub fn applier( mut reconciler: impl FnMut(Arc, Arc) -> ReconcilerFut, error_policy: impl Fn(Arc, &ReconcilerFut::Error, Arc) -> Action, diff --git a/kube-runtime/src/scheduler.rs b/kube-runtime/src/scheduler.rs index c6ebdb86b..a68f9b6df 100644 --- a/kube-runtime/src/scheduler.rs +++ b/kube-runtime/src/scheduler.rs @@ -224,6 +224,7 @@ pub fn scheduler>>(req /// to receive an uninterrupted request before actually emitting it. /// /// For more info, see [`scheduler()`]. +#[allow(clippy::module_name_repetitions)] pub fn debounced_scheduler>>( requests: S, debounce: Duration,