From 431a0dff4111c68c928b4049805bd6ea5debf124 Mon Sep 17 00:00:00 2001 From: Mathieu Poumeyrol Date: Thu, 29 Feb 2024 13:18:31 +0100 Subject: [PATCH] clip --- data/src/dim/tree.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/data/src/dim/tree.rs b/data/src/dim/tree.rs index cc972e1a01..d1d3701301 100644 --- a/data/src/dim/tree.rs +++ b/data/src/dim/tree.rs @@ -33,15 +33,15 @@ use TDim::*; fn tdim_compare(a: &TDim, b: &TDim) -> Ordering { match (a, b) { - (Sym(a), Sym(b)) => a.cmp(&b), - (Val(a), Val(b)) => a.cmp(&b), + (Sym(a), Sym(b)) => a.cmp(b), + (Val(a), Val(b)) => a.cmp(b), (Add(a), Add(b)) | (Mul(a), Mul(b)) => a.len().cmp(&b.len()).then( a.iter() .zip(b.iter()) .fold(Ordering::Equal, |acc, (a, b)| acc.then_with(|| tdim_compare(a, b))), ), - (MulInt(p, d), MulInt(q, e)) => p.cmp(&q).then_with(|| tdim_compare(d, e)), - (Div(d, p), Div(e, q)) => p.cmp(&q).then_with(|| tdim_compare(d, e)), + (MulInt(p, d), MulInt(q, e)) => p.cmp(q).then_with(|| tdim_compare(d, e)), + (Div(d, p), Div(e, q)) => p.cmp(q).then_with(|| tdim_compare(d, e)), (Sym(_), _) => Ordering::Less, (_, Sym(_)) => Ordering::Greater, (Val(_), _) => Ordering::Less,