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