remove unwrap

This commit is contained in:
Dr. Matthias Ratajczak
2023-02-14 13:55:10 +01:00
parent 610b63e954
commit 899461289d
+2 -1
View File
@@ -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")
}
}