Correct wrong borrow

This commit is contained in:
multi prise
2025-08-07 16:55:19 +02:00
committed by Damir Jelić
parent 24d02a72e3
commit fac1f295b2

View File

@@ -464,7 +464,7 @@ pub(crate) trait SqliteKeyValueStoreAsyncConnExt: SqliteAsyncConnExt {
let cipher = if let Some(encrypted) = encrypted_cipher {
match secret {
Secret::PassPhrase(ref passphrase) => StoreCipher::import(&passphrase, &encrypted)?,
Secret::PassPhrase(ref passphrase) => StoreCipher::import(passphrase, &encrypted)?,
Secret::Key(key) => StoreCipher::import_with_key(&key, &encrypted)?,
}
} else {