implement clippy reccomendation

This commit is contained in:
Johann150 2021-03-03 23:17:35 +01:00
parent 5dbb4be864
commit afd30c386c
No known key found for this signature in database
GPG key ID: 9EE6577A2A06F8F1

View file

@ -183,7 +183,7 @@ impl CertStore {
let key = load_domain(certs_dir, filename.clone())?;
key.cross_check_end_entity_cert(Some(dns_name))
.or_else(|e| Err(CertLoadError::BadCert(filename.clone(), e.to_string())))?;
.map_err(|e| CertLoadError::BadCert(filename.clone(), e.to_string()))?;
certs.push((filename, key));
}