From 60f57d50f2a01802da247271d85f085f2d885f5d Mon Sep 17 00:00:00 2001 From: Toshit Chawda Date: Tue, 17 Dec 2024 12:28:25 -0800 Subject: [PATCH] fix scramerr... THREE!! --- rewriter/rewriter/src/changes.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rewriter/rewriter/src/changes.rs b/rewriter/rewriter/src/changes.rs index 503236d..0fc6f40 100644 --- a/rewriter/rewriter/src/changes.rs +++ b/rewriter/rewriter/src/changes.rs @@ -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,