From f8fba0562a7fb6abc501926c0daadc34cb304f7d Mon Sep 17 00:00:00 2001 From: Arni Hod Date: Mon, 16 Dec 2024 20:45:49 +0200 Subject: [PATCH] chore(consensus) remove warning on do_vecs_match_unordered --- .../sequencing/papyrus_consensus/src/stream_handler_test.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/sequencing/papyrus_consensus/src/stream_handler_test.rs b/crates/sequencing/papyrus_consensus/src/stream_handler_test.rs index 047bf27142..bbc3d2a7a1 100644 --- a/crates/sequencing/papyrus_consensus/src/stream_handler_test.rs +++ b/crates/sequencing/papyrus_consensus/src/stream_handler_test.rs @@ -35,9 +35,9 @@ mod tests { } // Check if two vectors are the same, regardless of ordering - fn do_vecs_match_unordered(a: &[T], b: &[T]) -> bool + fn do_vecs_match_unordered(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();