Fix clippy error

This commit is contained in:
Romain GERARD
2021-02-18 10:34:14 +01:00
committed by Erèbe - Romain Gerard
parent 0c2b14246b
commit 70642a4054
2 changed files with 3 additions and 3 deletions

View File

@@ -373,7 +373,7 @@ pub fn check_domain_for(
},
ProgressLevel::Info,
Some(x),
execution_id.clone().to_string(),
execution_id.to_string(),
));
OperationResult::Retry(err)

View File

@@ -397,7 +397,7 @@ where
P: AsRef<Path>,
{
// don't create the namespace if already exists and not not return error in this case
if !kubectl_exec_is_namespace_present(kubernetes_config.as_ref(), namespace.clone(), envs.clone()) {
if !kubectl_exec_is_namespace_present(kubernetes_config.as_ref(), namespace, envs.clone()) {
// create namespace
let mut _envs = Vec::with_capacity(envs.len() + 1);
_envs.push((KUBECONFIG, kubernetes_config.as_ref().to_str().unwrap()));
@@ -444,7 +444,7 @@ where
));
};
if !kubectl_exec_is_namespace_present(kubernetes_config.as_ref(), namespace.clone(), envs.clone()) {
if !kubectl_exec_is_namespace_present(kubernetes_config.as_ref(), namespace, envs.clone()) {
return Err(SimpleError::new(
SimpleErrorKind::Other,
Some(format! {"Can't set labels on namespace {} because it doesn't exists", namespace}),