Skip to content

Commit

Permalink
chore(consensus) remove warning on do_vecs_match_unordered
Browse files Browse the repository at this point in the history
  • Loading branch information
ArniStarkware committed Dec 16, 2024
1 parent c503127 commit f8fba05
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ mod tests {
}

// Check if two vectors are the same, regardless of ordering
fn do_vecs_match_unordered<T: PartialEq + Ord + Clone>(a: &[T], b: &[T]) -> bool
fn do_vecs_match_unordered<T>(a: &[T], b: &[T]) -> bool
where
T: std::hash::Hash + Eq,
T: Clone + Eq + Ord + PartialEq + std::hash::Hash,
{
let mut a = a.to_owned();
a.sort();
Expand Down

0 comments on commit f8fba05

Please sign in to comment.