fix scramerr... THREE!!

This commit is contained in:
Toshit Chawda 2024-12-17 12:28:25 -08:00
parent b13c2f9563
commit 60f57d50f2
No known key found for this signature in database
GPG key ID: 91480ED99E2B3D9D

View file

@ -338,8 +338,8 @@ impl Ord for JsChange {
fn cmp(&self, other: &Self) -> std::cmp::Ordering {
match self.get_span().start.cmp(&other.get_span().start) {
Ordering::Equal => match (self, other) {
(Self::ScramErrFn { .. }, _) => Ordering::Greater,
(_, Self::ScramErrFn { .. }) => Ordering::Less,
(Self::ScramErrFn { .. }, _) => Ordering::Less,
(_, Self::ScramErrFn { .. }) => Ordering::Greater,
_ => Ordering::Equal,
},
x => x,