pprust: Print &&e instead of & &e

This commit is contained in:
klutzy 2014-04-18 15:44:25 +09:00 committed by Alex Crichton
parent cc31bb0a9e
commit 4675a87c8b

View File

@ -1279,11 +1279,6 @@ impl<'a> State<'a> {
}
try!(self.print_mutability(m));
// Avoid `& &e` => `&&e`.
match (m, &expr.node) {
(ast::MutImmutable, &ast::ExprAddrOf(..)) => try!(space(&mut self.s)),
_ => { }
}
try!(self.print_expr_maybe_paren(expr));
}