diff --git a/src/fixup.rs b/src/fixup.rs index 648fbab4d..e1ee2d78c 100644 --- a/src/fixup.rs +++ b/src/fixup.rs @@ -475,6 +475,7 @@ fn scan_left(expr: &Expr, fixup: FixupContext) -> bool { Precedence::Assign => fixup.previous_operator <= Precedence::Assign, binop_prec => fixup.previous_operator < binop_prec, }, + Expr::Cast(_) => fixup.previous_operator < Precedence::Cast, Expr::Range(e) => e.start.is_none() || fixup.previous_operator < Precedence::Assign, _ => true, }