Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
ajewellamz committed Jan 23, 2025
1 parent 8a3291b commit 6133b6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions AwsCryptographicMaterialProviders/runtimes/rust/src/sets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub mod SortedSets {

pub fn SetToOrderedSequence<T: ::dafny_runtime::DafnyTypeEq>(
elems: &::dafny_runtime::Set<::dafny_runtime::Sequence<T>>,
less: &::dafny_runtime::Rc<dyn Fn(&T, &T) -> bool>,
less: &::dafny_runtime::Rc<dyn Fn(&T, &T) -> bool + Send + Sync>,
) -> ::dafny_runtime::Sequence<::dafny_runtime::Sequence<T>> {
let mut vec = elems.iter().cloned().collect::<Vec<_>>();
vec.sort_by(|a, b| Self::order(a, b, less));
Expand All @@ -30,15 +30,15 @@ pub mod SortedSets {

pub fn SetToOrderedSequence2<T: ::dafny_runtime::DafnyTypeEq>(
elems: &::dafny_runtime::Set<::dafny_runtime::Sequence<T>>,
less: &::dafny_runtime::Rc<dyn Fn(&T, &T) -> bool>,
less: &::dafny_runtime::Rc<dyn Fn(&T, &T) -> bool + Send + Sync>,
) -> ::dafny_runtime::Sequence<::dafny_runtime::Sequence<T>> {
Self::SetToOrderedSequence(elems, less)
}

fn order<T: ::dafny_runtime::DafnyTypeEq>(
x: &::dafny_runtime::Sequence<T>,
y: &::dafny_runtime::Sequence<T>,
less: &::dafny_runtime::Rc<dyn Fn(&T, &T) -> bool>,
less: &::dafny_runtime::Rc<dyn Fn(&T, &T) -> bool + Send + Sync>,
) -> Ordering {
let mut iter1 = x.iter();
let mut iter2 = y.iter();
Expand Down

0 comments on commit 6133b6e

Please sign in to comment.