This commit is contained in:
Jun Kurihara 2023-02-27 14:42:39 +09:00
commit 0f44f71289
No known key found for this signature in database
GPG key ID: D992B3E3DE1DED23
4 changed files with 8 additions and 8 deletions

View file

@ -80,7 +80,7 @@ impl Backend {
let mut reader = BufReader::new(File::open(certs_path).map_err(|e| {
io::Error::new(
e.kind(),
format!("Unable to load the certificates [{}]: {}", certs_path_str, e),
format!("Unable to load the certificates [{certs_path_str}]: {e}"),
)
})?);
rustls_pemfile::certs(&mut reader)
@ -97,7 +97,7 @@ impl Backend {
.map_err(|e| {
io::Error::new(
e.kind(),
format!("Unable to load the certificate keys [{}]: {}", certs_keys_path_str, e),
format!("Unable to load the certificate keys [{certs_keys_path_str}]: {e}"),
)
})?
.read_to_end(&mut encoded_keys)?;
@ -155,7 +155,7 @@ impl Backend {
let mut reader = BufReader::new(File::open(client_ca_cert_path).map_err(|e| {
io::Error::new(
e.kind(),
format!("Unable to load the client certificates [{}]: {}", certs_path_str, e),
format!("Unable to load the client certificates [{certs_path_str}]: {e}"),
)
})?);
rustls_pemfile::certs(&mut reader)