diff options
author | Nadrieril | 2019-03-24 12:55:55 +0100 |
---|---|---|
committer | Nadrieril | 2019-03-24 12:55:55 +0100 |
commit | dc8497a1b659bff4e261a0d7f05f56d21c6d2448 (patch) | |
tree | 1cc1f20ac1886fc202ce7c07b42e6ab220de7a14 | |
parent | 7d30b044a2c8c2cef8143b9e0ac763024c50026c (diff) |
Fix printer putting unnecessary parens
Diffstat (limited to '')
-rw-r--r-- | dhall_core/src/printer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<S, A: Display> Expr<S, A> { } 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))?; |