Make pattern match more concise
@@ -184,16 +184,12 @@ fn bin_op(name: BinOp, left: TypedExpr, right: TypedExpr, env: &mut Env) -> Docu
BinOp::Pipe => return pipe(left, right, env),
BinOp::And => "andalso",
BinOp::Or => "orelse",
- BinOp::LtInt => "<",
- BinOp::LtEqInt => "=<",
- BinOp::LtFloat => "<",
- BinOp::LtEqFloat => "=<",
+ BinOp::LtInt | BinOp::LtFloat => "<",
+ BinOp::LtEqInt | BinOp::LtEqFloat => "=<",
BinOp::Eq => "=:=",
BinOp::NotEq => "/=",
- BinOp::GtEqInt => ">=",
- BinOp::GtInt => ">",
- BinOp::GtEqFloat => ">=",
- BinOp::GtFloat => ">",
+ BinOp::GtInt | BinOp::GtFloat => ">",
+ BinOp::GtEqInt | BinOp::GtEqFloat => ">=",
BinOp::AddInt => "+",
BinOp::AddFloat => "+",
BinOp::SubInt => "-",
