commit afd30c386c1b8762e21c6880e32563a518047c3d parent 5dbb4be864ae2d29dc98e4e20f703ef172a704d9 Author: Johann150 <johann.galle@protonmail.com> Date: Wed, 3 Mar 2021 23:17:35 +0100 implement clippy reccomendation Diffstat:
M | src/certificates.rs | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/certificates.rs b/src/certificates.rs @@ -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)); }