Skip to content

Commit

Permalink
manual clippy fixes
Browse files Browse the repository at this point in the history
Signed-off-by: clux <[email protected]>
  • Loading branch information
clux committed Mar 5, 2024
1 parent 9b584a1 commit 57976cc
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions kube-client/src/api/subresource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ pub use kube_core::subresource::AttachParams;

pub use k8s_openapi::api::autoscaling::v1::{Scale, ScaleSpec, ScaleStatus};

#[cfg(feature = "ws")] use crate::api::portforward::Portforwarder;
#[cfg(feature = "ws")] use crate::api::remote_command::AttachedProcess;
#[cfg(feature = "ws")]
use crate::api::portforward::Portforwarder;
#[cfg(feature = "ws")]
use crate::api::remote_command::AttachedProcess;

/// Methods for [scale subresource](https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#scale-subresource).
impl<K> Api<K>
Expand Down Expand Up @@ -545,14 +547,9 @@ where
K: Clone + DeserializeOwned + Execute,
{
/// Execute a command in a pod
pub async fn exec<I: Debug, T>(
&self,
name: &str,
command: I,
ap: &AttachParams,
) -> Result<AttachedProcess>
pub async fn exec<I, T>(&self, name: &str, command: I, ap: &AttachParams) -> Result<AttachedProcess>
where
I: IntoIterator<Item = T>,
I: IntoIterator<Item = T> + Debug,
T: Into<String>,
{
let mut req = self
Expand Down

0 comments on commit 57976cc

Please sign in to comment.