diff --git a/AwsCryptographicMaterialProviders/runtimes/rust/src/sets.rs b/AwsCryptographicMaterialProviders/runtimes/rust/src/sets.rs index 318aa536f..6c9fb380c 100644 --- a/AwsCryptographicMaterialProviders/runtimes/rust/src/sets.rs +++ b/AwsCryptographicMaterialProviders/runtimes/rust/src/sets.rs @@ -21,7 +21,7 @@ pub mod SortedSets { pub fn SetToOrderedSequence( elems: &::dafny_runtime::Set<::dafny_runtime::Sequence>, - less: &::dafny_runtime::Rc bool>, + less: &::dafny_runtime::Rc bool + Send + Sync>, ) -> ::dafny_runtime::Sequence<::dafny_runtime::Sequence> { let mut vec = elems.iter().cloned().collect::>(); vec.sort_by(|a, b| Self::order(a, b, less)); @@ -30,7 +30,7 @@ pub mod SortedSets { pub fn SetToOrderedSequence2( elems: &::dafny_runtime::Set<::dafny_runtime::Sequence>, - less: &::dafny_runtime::Rc bool>, + less: &::dafny_runtime::Rc bool + Send + Sync>, ) -> ::dafny_runtime::Sequence<::dafny_runtime::Sequence> { Self::SetToOrderedSequence(elems, less) } @@ -38,7 +38,7 @@ pub mod SortedSets { fn order( x: &::dafny_runtime::Sequence, y: &::dafny_runtime::Sequence, - less: &::dafny_runtime::Rc bool>, + less: &::dafny_runtime::Rc bool + Send + Sync>, ) -> Ordering { let mut iter1 = x.iter(); let mut iter2 = y.iter();