mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-25 21:46:50 +00:00
Update rustfs/src/utils.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
+2
-1
@@ -18,7 +18,8 @@ pub(crate) fn load_certs(filename: &str) -> io::Result<Vec<CertificateDer<'stati
|
|||||||
let mut reader = io::BufReader::new(cert_file);
|
let mut reader = io::BufReader::new(cert_file);
|
||||||
|
|
||||||
// Load and return certificate.
|
// Load and return certificate.
|
||||||
certs(&mut reader).collect()
|
let certs = certs(&mut reader).collect::<Result<Vec<_>, _>>()?;
|
||||||
|
Ok(certs)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Load private key from file.
|
/// Load private key from file.
|
||||||
|
|||||||
Reference in New Issue
Block a user