From ed3a464722890448a6b93d3c5886686a1a48eee2 Mon Sep 17 00:00:00 2001 From: strawberry Date: Tue, 2 Jul 2024 19:13:54 -0400 Subject: [PATCH] remove uselsss partial_cmp with cmp Signed-off-by: strawberry --- src/service/rooms/pdu_metadata/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/service/rooms/pdu_metadata/mod.rs b/src/service/rooms/pdu_metadata/mod.rs index d77fbf74..978a0ec0 100644 --- a/src/service/rooms/pdu_metadata/mod.rs +++ b/src/service/rooms/pdu_metadata/mod.rs @@ -210,7 +210,7 @@ impl Service { } } - pdus.sort_by(|a, b| a.0.partial_cmp(&b.0).expect("u64s can always be compared")); + pdus.sort_by(|a, b| a.0.cmp(&b.0)); pdus }) }