Skip to content

Commit 45bf2e1

Browse files
committed
Clippy lint fixes
1 parent 91e8e03 commit 45bf2e1

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/crypto/sealer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ impl Sealer {
208208
protected_attributes: impl AsRef<[Cow<'a, str>]>,
209209
cipher: &ScopedZeroKmsCipher,
210210
) -> Result<Vec<Sealed>, SealError> {
211-
Self::index_all_terms(records, protected_attributes, &cipher)?
211+
Self::index_all_terms(records, protected_attributes, cipher)?
212212
.encrypt(cipher)
213213
.await
214214
}

src/encrypted_table/query.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,15 @@ impl PreparedQuery {
8383

8484
impl<S> QueryBuilder<S> {
8585
pub fn new() -> Self {
86+
Self::default()
87+
}
88+
}
89+
90+
impl<S> Default for QueryBuilder<S> {
91+
fn default() -> Self {
8692
Self {
8793
parts: vec![],
8894
storage: Default::default(),
89-
// FIXME: Why is this Default and not PhantomData?
9095
__searchable: Default::default(),
9196
}
9297
}

0 commit comments

Comments
 (0)