From d468163afd4a165bc383ef8a68ab7eb59c8a0c70 Mon Sep 17 00:00:00 2001 From: steven-omaha <35634100+steven-omaha@users.noreply.github.com> 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") } }