From a8c272bb1ba3bf3f17b1499f6831acaef565004c Mon Sep 17 00:00:00 2001 From: Omer Tuchfeld Date: Wed, 4 Dec 2024 14:00:49 +0100 Subject: [PATCH] Clippy Just some clippy errors Signed-off-by: Omer Tuchfeld --- src/cluster_crypto/keys.rs | 2 +- src/ocp_postprocess/ip_rename/filesystem_rename.rs | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/cluster_crypto/keys.rs b/src/cluster_crypto/keys.rs index eabf8ac5..f5ed145d 100644 --- a/src/cluster_crypto/keys.rs +++ b/src/cluster_crypto/keys.rs @@ -35,7 +35,7 @@ impl Serialize for PrivateKey { match self { Self::Rsa(rsa_private_key) => serializer.serialize_str( &base64_standard.encode( - &rsa_private_key + rsa_private_key .to_pkcs8_pem(LineEnding::LF) .unwrap_or("failed to serialize RSA private key".to_string().into()), ), diff --git a/src/ocp_postprocess/ip_rename/filesystem_rename.rs b/src/ocp_postprocess/ip_rename/filesystem_rename.rs index 0123d352..083b8c5a 100644 --- a/src/ocp_postprocess/ip_rename/filesystem_rename.rs +++ b/src/ocp_postprocess/ip_rename/filesystem_rename.rs @@ -11,13 +11,9 @@ pub(crate) async fn fix_filesystem_ip(original_ip: &str, ip: &str, dir: &Path) - file_utils::globvec(dir, "**/etcd-pod.yaml")? .into_iter() .chain(file_utils::globvec(dir, "**/*etcd-pod/pod.yaml")?) - .into_iter() .chain(file_utils::globvec(dir, "**/etcd-scripts/etcd.env")?) - .into_iter() .chain(file_utils::globvec(dir, "**/etcd-endpoints/*")?) - .into_iter() .chain(file_utils::globvec(dir, "**/kube-apiserver-pod-*/configmaps/config/config.yaml")?) - .into_iter() .map(|file_path| { let path = file_path.clone(); let original_ip = original_ip.to_string();