chore: fix cargo clippy (#174)

This commit is contained in:
sigoden
2023-02-19 12:24:42 +08:00
committed by GitHub
parent fea9bf988a
commit 47883376c1
5 changed files with 26 additions and 32 deletions

View File

@@ -150,7 +150,7 @@ pub fn load_private_key<T: AsRef<Path>>(
// Load and return a single private key.
let keys = rustls_pemfile::read_all(&mut reader)
.map_err(|e| format!("There was a problem with reading private key: {:?}", e))?
.map_err(|e| format!("There was a problem with reading private key: {e:?}"))?
.into_iter()
.find_map(|item| match item {
rustls_pemfile::Item::RSAKey(key)