remove unwrap
This commit is contained in:
1 parent
610b63e954
commit
899461289d
1 file changed
+2
-1
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user