From dc8497a1b659bff4e261a0d7f05f56d21c6d2448 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Sun, 24 Mar 2019 12:55:55 +0100 Subject: Fix printer putting unnecessary parens --- dhall_core/src/printer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dhall_core/src/printer.rs') diff --git a/dhall_core/src/printer.rs b/dhall_core/src/printer.rs index aa9f707..9525904 100644 --- a/dhall_core/src/printer.rs +++ b/dhall_core/src/printer.rs @@ -139,7 +139,7 @@ impl Expr { } Expr::BinOp(op, a, b) => { // Precedence is magically handled by the ordering of BinOps. - if phase >= PrintPhase::BinOp(*op) { + if phase > PrintPhase::BinOp(*op) { return self.fmt_phase(f, Paren); } a.fmt_phase(f, PrintPhase::BinOp(*op))?; -- cgit v1.2.3