Update rustfs/src/utils.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
houseme
2025-04-02 01:12:54 +08:00
committed by GitHub
parent b365aab902
commit f47a417319
+2 -1
View File
@@ -18,7 +18,8 @@ pub(crate) fn load_certs(filename: &str) -> io::Result<Vec<CertificateDer<'stati
let mut reader = io::BufReader::new(cert_file);
// Load and return certificate.
certs(&mut reader).collect()
let certs = certs(&mut reader).collect::<Result<Vec<_>, _>>()?;
Ok(certs)
}
/// Load private key from file.