Skip to content

Commit 7337b3e

Browse files
committed
Fix ut compilation error
1 parent 30296eb commit 7337b3e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/database.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ enum_from_primitive! {
4545
/// Database encryption algorithms
4646
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
4747
pub enum EncryptionAlgorithm {
48-
Compact = kCBLEncryptionNone as isize,
49-
Reindex = kCBLEncryptionAES256 as isize,
48+
None = kCBLEncryptionNone as isize,
49+
AES256 = kCBLEncryptionAES256 as isize,
5050
}
5151
}
5252

tests/database_tests.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ fn db_encryption_key() {
149149
directory: tmp_dir.path(),
150150
encryption_key: None,
151151
};
152-
let encryption_key = EncryptionKey::new_from_password("password1").unwrap();
152+
let encryption_key =
153+
EncryptionKey::new_from_password(EncryptionAlgorithm::None, "password1").unwrap();
153154
let cfg_encryption1 = DatabaseConfiguration {
154155
directory: tmp_dir.path(),
155156
encryption_key: Some(encryption_key.clone()),

0 commit comments

Comments
 (0)