mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-18 13:40:55 -04:00
Correct wrong borrow
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user