We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f39ad7 commit 6925451Copy full SHA for 6925451
src/ast/value.rs
@@ -45,18 +45,18 @@ impl PartialEq for ValueWithSpan {
45
}
46
47
48
-impl PartialOrd for ValueWithSpan {
49
- fn partial_cmp(&self, other: &Self) -> Option<core::cmp::Ordering> {
50
- self.value.partial_cmp(&other.value)
51
- }
52
-}
53
-
54
impl Ord for ValueWithSpan {
55
fn cmp(&self, other: &Self) -> core::cmp::Ordering {
56
self.value.cmp(&other.value)
57
58
59
+impl PartialOrd for ValueWithSpan {
+ fn partial_cmp(&self, other: &Self) -> Option<core::cmp::Ordering> {
+ Some(Ord::cmp(self, other))
+ }
+}
+
60
impl core::hash::Hash for ValueWithSpan {
61
fn hash<H: core::hash::Hasher>(&self, state: &mut H) {
62
self.value.hash(state);
0 commit comments