From 899461289d537421a582adfb5cb8b1a003445900 Mon Sep 17 00:00:00 2001 From: "Dr. Matthias Ratajczak" Date: Tue, 14 Feb 2023 13:55:10 +0100 Subject: [PATCH] remove unwrap --- crates/pacdef_core/src/grouping/section.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/pacdef_core/src/grouping/section.rs b/crates/pacdef_core/src/grouping/section.rs index 48aeee4..9478c1e 100644 --- a/crates/pacdef_core/src/grouping/section.rs +++ b/crates/pacdef_core/src/grouping/section.rs @@ -75,7 +75,8 @@ impl PartialOrd for Section { impl Ord for Section { fn cmp(&self, other: &Self) -> std::cmp::Ordering { - self.partial_cmp(other).unwrap() + self.partial_cmp(other) + .expect("partial_cmp compares &str, which provide total order") } }