Casts are a type of binop
This just adds paren following the same cases as before
This commit is contained in:
parent
c0c6af7f07
commit
6a51de0a0a
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user