Skip to content

Commit 9718b79

Browse files
committed
Correct wrong borrow
1 parent 98a6e36 commit 9718b79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/matrix-sdk-sqlite/src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ pub(crate) trait SqliteKeyValueStoreAsyncConnExt: SqliteAsyncConnExt {
464464

465465
let cipher = if let Some(encrypted) = encrypted_cipher {
466466
match secret {
467-
Secret::PassPhrase(ref passphrase) => StoreCipher::import(&passphrase, &encrypted)?,
467+
Secret::PassPhrase(ref passphrase) => StoreCipher::import(passphrase, &encrypted)?,
468468
Secret::Key(key) => StoreCipher::import_with_key(&key, &encrypted)?,
469469
}
470470
} else {

0 commit comments

Comments
 (0)