forked from proxmox-mirrors/proxmox
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 <w.bumiller@proxmox.com>
This commit is contained in:
parent
a3c1d9d456
commit
b2dd0117d1
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user