Skip to content

Commit e5e1f2d

Browse files
author
Bennett Hardwick
committed
Fix user example tests
1 parent 9260555 commit e5e1f2d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

examples/common/user.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ impl User {
3030
#[cfg(test)]
3131
mod tests {
3232
use super::*;
33+
use std::borrow::Cow;
3334
use cipherstash_dynamodb::{IndexType, SingleIndex};
3435

3536
#[test]
@@ -57,12 +58,12 @@ mod tests {
5758
assert_eq!(
5859
User::protected_indexes(),
5960
vec![
60-
("email", IndexType::Single(SingleIndex::Exact)),
61+
(Cow::Borrowed("email"), IndexType::Single(SingleIndex::Exact)),
6162
(
62-
"email#name",
63+
Cow::Borrowed("email#name"),
6364
IndexType::Compound2((SingleIndex::Exact, SingleIndex::Prefix))
6465
),
65-
("name", IndexType::Single(SingleIndex::Prefix)),
66+
(Cow::Borrowed("name"), IndexType::Single(SingleIndex::Prefix)),
6667
]
6768
);
6869
}

0 commit comments

Comments
 (0)