Skip to content

Commit

Permalink
Merge pull request #169 from omertuc/clippy
Browse files Browse the repository at this point in the history
Clippy
  • Loading branch information
omertuc authored Dec 4, 2024
2 parents 6b53552 + a8c272b commit 146d041
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion src/cluster_crypto/keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
),
Expand Down
4 changes: 0 additions & 4 deletions src/ocp_postprocess/ip_rename/filesystem_rename.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 146d041

Please sign in to comment.