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 }) }