Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cipherstash-dynamodb-derive/src/searchable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub(crate) fn derive_searchable(input: DeriveInput) -> Result<TokenStream, syn::
std::borrow::Cow::Borrowed(&[#(#protected_indexes_impl,)*])
}

fn index_by_name(index_name: &str, index_type: cipherstash_dynamodb::IndexType) -> Option<Box<dyn cipherstash_dynamodb::traits::ComposableIndex>> {
fn index_by_name(index_name: &str, index_type: cipherstash_dynamodb::IndexType) -> Option<Box<dyn cipherstash_dynamodb::traits::ComposableIndex + Send>> {
match ( index_name, index_type ) {
#(#indexes_impl,)*
_ => None,
Expand Down
2 changes: 1 addition & 1 deletion src/crypto/sealer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use std::{borrow::Cow, collections::HashMap, ops::Deref};
/// The combination of plaintext, index, name and index type for a particular field
pub type UnsealedIndex = (
ComposablePlaintext,
Box<dyn ComposableIndex>,
Box<dyn ComposableIndex + Send>,
Cow<'static, str>,
IndexType,
);
Expand Down
4 changes: 2 additions & 2 deletions src/encrypted_table/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub struct QueryBuilder<S, B = ()> {
pub struct PreparedQuery {
index_name: String,
type_name: String,
composed_index: Box<dyn ComposableIndex>,
composed_index: Box<dyn ComposableIndex + Send>,
plaintext: ComposablePlaintext,
}

Expand Down Expand Up @@ -161,7 +161,7 @@ where

pub struct PreparedQueryBuilder {
pub type_name: Cow<'static, str>,
pub index_by_name: fn(&str, IndexType) -> Option<Box<dyn ComposableIndex>>,
pub index_by_name: fn(&str, IndexType) -> Option<Box<dyn ComposableIndex + Send>>,
}

impl PreparedQueryBuilder {
Expand Down
2 changes: 1 addition & 1 deletion src/traits/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ pub trait Searchable: Encryptable {
fn index_by_name(
_index_name: &str,
_index_type: IndexType,
) -> Option<Box<dyn ComposableIndex>> {
) -> Option<Box<dyn ComposableIndex + Send>> {
None
}
}
Expand Down
Loading