From b2dd0117d11f2e866fe97a23e7e15077398345f5 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Fri, 28 Jun 2024 11:14:29 +0200 Subject: [PATCH] acme-api: allow clippy::manual_map where .map doesn't make sense The code chooses whichever one of a multitude of functions returns Some, switching to .map for the final else would make it less readable. Signed-off-by: Wolfgang Bumiller --- proxmox-acme-api/src/certificate_helpers.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/proxmox-acme-api/src/certificate_helpers.rs b/proxmox-acme-api/src/certificate_helpers.rs index dd8385e2..027cc03c 100644 --- a/proxmox-acme-api/src/certificate_helpers.rs +++ b/proxmox-acme-api/src/certificate_helpers.rs @@ -337,6 +337,8 @@ impl CertificateInfo { .map(|san| { san.into_iter() .filter_map(|name| { + // this is not actually a map and we don't want to break the pattern + #[allow(clippy::manual_map)] if let Some(name) = name.dnsname() { Some(format!("DNS: {name}")) } else if let Some(ip) = name.ipaddress() {