Casts are a type of binop

This just adds paren following the same cases as before
This commit is contained in:
Garming Sam 2015-08-06 19:57:41 +12:00
parent c0c6af7f07
commit 6a51de0a0a

View File

@ -1753,7 +1753,7 @@ impl<'a> State<'a> {
try!(self.print_literal(&**lit));
}
ast::ExprCast(ref expr, ref ty) => {
try!(self.print_expr(&**expr));
try!(self.print_expr_maybe_paren(&**expr));
try!(space(&mut self.s));
try!(self.word_space("as"));
try!(self.print_type(&**ty));