We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9260555 commit e5e1f2dCopy full SHA for e5e1f2d
examples/common/user.rs
@@ -30,6 +30,7 @@ impl User {
30
#[cfg(test)]
31
mod tests {
32
use super::*;
33
+ use std::borrow::Cow;
34
use cipherstash_dynamodb::{IndexType, SingleIndex};
35
36
#[test]
@@ -57,12 +58,12 @@ mod tests {
57
58
assert_eq!(
59
User::protected_indexes(),
60
vec![
- ("email", IndexType::Single(SingleIndex::Exact)),
61
+ (Cow::Borrowed("email"), IndexType::Single(SingleIndex::Exact)),
62
(
- "email#name",
63
+ Cow::Borrowed("email#name"),
64
IndexType::Compound2((SingleIndex::Exact, SingleIndex::Prefix))
65
),
- ("name", IndexType::Single(SingleIndex::Prefix)),
66
+ (Cow::Borrowed("name"), IndexType::Single(SingleIndex::Prefix)),
67
]
68
);
69
}
0 commit comments