This commit is contained in:
Alex Orlenko
2024-10-06 22:48:58 +01:00
parent 4891b6535c
commit 8aecc83f53
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -174,7 +174,7 @@ impl Eq for String {}
impl PartialOrd for String {
fn partial_cmp(&self, other: &String) -> Option<cmp::Ordering> {
self.as_bytes().partial_cmp(&other.as_bytes())
Some(self.cmp(other))
}
}