mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-09 00:59:02 +03:00
chore: fix cargo clippy (#174)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user