remove unwrap

This commit is contained in:
steven-omaha
2023-02-14 13:55:10 +01:00
parent e7cb7d9321
commit d468163afd
+2 -1
View File
@@ -75,7 +75,8 @@ impl PartialOrd for Section {
impl Ord for Section { impl Ord for Section {
fn cmp(&self, other: &Self) -> std::cmp::Ordering { 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")
} }
} }