diff --git a/src/backup/key_derivation.rs b/src/backup/key_derivation.rs index 40f7e0ae..abe314b9 100644 --- a/src/backup/key_derivation.rs +++ b/src/backup/key_derivation.rs @@ -148,7 +148,7 @@ pub fn encrypt_key_with_passphrase( }) } -pub fn load_and_decrtypt_key(path: &std::path::Path, passphrase: fn() -> Result, Error>) -> Result<([u8;32], DateTime), Error> { +pub fn load_and_decrtypt_key(path: &std::path::Path, passphrase: &dyn Fn() -> Result, Error>) -> Result<([u8;32], DateTime), Error> { let raw = file_get_contents(&path)?; let data = String::from_utf8(raw)?;