@@ -515,7 +515,7 @@ pub trait PrintState<'a>: std::ops::Deref<Target = pp::Printer> + std::ops::Dere
515515 ast:: MetaItemKind :: List ( ref items) => {
516516 self . print_path ( & item. path , false , 0 ) ;
517517 self . popen ( ) ;
518- self . commasep ( Consistent , & items, |s, i| s. print_meta_list_item ( i) ) ;
518+ self . commasep ( Consistent , items, |s, i| s. print_meta_list_item ( i) ) ;
519519 self . pclose ( ) ;
520520 }
521521 }
@@ -532,7 +532,7 @@ pub trait PrintState<'a>: std::ops::Deref<Target = pp::Printer> + std::ops::Dere
532532 fn print_tt ( & mut self , tt : & TokenTree , convert_dollar_crate : bool ) {
533533 match tt {
534534 TokenTree :: Token ( token, _) => {
535- let token_str = self . token_to_string_ext ( & token, convert_dollar_crate) ;
535+ let token_str = self . token_to_string_ext ( token, convert_dollar_crate) ;
536536 self . word ( token_str) ;
537537 if let token:: DocComment ( ..) = token. kind {
538538 self . hardbreak ( )
@@ -994,7 +994,7 @@ impl<'a> State<'a> {
994994 ast:: AssocConstraintKind :: Bound { bounds } => {
995995 if !bounds. is_empty ( ) {
996996 self . word_nbsp ( ":" ) ;
997- self . print_type_bounds ( & bounds) ;
997+ self . print_type_bounds ( bounds) ;
998998 }
999999 }
10001000 }
@@ -1031,7 +1031,7 @@ impl<'a> State<'a> {
10311031 }
10321032 ast:: TyKind :: Tup ( ref elts) => {
10331033 self . popen ( ) ;
1034- self . commasep ( Inconsistent , & elts, |s, ty| s. print_type ( ty) ) ;
1034+ self . commasep ( Inconsistent , elts, |s, ty| s. print_type ( ty) ) ;
10351035 if elts. len ( ) == 1 {
10361036 self . word ( "," ) ;
10371037 }
@@ -1250,7 +1250,7 @@ impl<'a> State<'a> {
12501250
12511251 self . popen ( ) ;
12521252 self . commasep ( Consistent , & args, |s, arg| match arg {
1253- AsmArg :: Template ( template) => s. print_string ( & template, ast:: StrStyle :: Cooked ) ,
1253+ AsmArg :: Template ( template) => s. print_string ( template, ast:: StrStyle :: Cooked ) ,
12541254 AsmArg :: Operand ( op) => {
12551255 let print_reg_or_class = |s : & mut Self , r : & InlineAsmRegOrRegClass | match r {
12561256 InlineAsmRegOrRegClass :: Reg ( r) => s. print_symbol ( * r, ast:: StrStyle :: Cooked ) ,
@@ -1420,11 +1420,11 @@ impl<'a> State<'a> {
14201420 self . print_path ( path, true , 0 ) ;
14211421 }
14221422 self . popen ( ) ;
1423- self . commasep ( Inconsistent , & elts, |s, p| s. print_pat ( p) ) ;
1423+ self . commasep ( Inconsistent , elts, |s, p| s. print_pat ( p) ) ;
14241424 self . pclose ( ) ;
14251425 }
14261426 PatKind :: Or ( ref pats) => {
1427- self . strsep ( "|" , true , Inconsistent , & pats, |s, p| s. print_pat ( p) ) ;
1427+ self . strsep ( "|" , true , Inconsistent , pats, |s, p| s. print_pat ( p) ) ;
14281428 }
14291429 PatKind :: Path ( None , ref path) => {
14301430 self . print_path ( path, true , 0 ) ;
@@ -1446,7 +1446,7 @@ impl<'a> State<'a> {
14461446 }
14471447 self . commasep_cmnt (
14481448 Consistent ,
1449- & fields,
1449+ fields,
14501450 |s, f| {
14511451 s. cbox ( INDENT_UNIT ) ;
14521452 if !f. is_shorthand {
@@ -1471,7 +1471,7 @@ impl<'a> State<'a> {
14711471 }
14721472 PatKind :: Tuple ( ref elts) => {
14731473 self . popen ( ) ;
1474- self . commasep ( Inconsistent , & elts, |s, p| s. print_pat ( p) ) ;
1474+ self . commasep ( Inconsistent , elts, |s, p| s. print_pat ( p) ) ;
14751475 if elts. len ( ) == 1 {
14761476 self . word ( "," ) ;
14771477 }
@@ -1494,7 +1494,7 @@ impl<'a> State<'a> {
14941494 self . print_pat ( inner) ;
14951495 }
14961496 }
1497- PatKind :: Lit ( ref e) => self . print_expr ( & * * e) ,
1497+ PatKind :: Lit ( ref e) => self . print_expr ( e) ,
14981498 PatKind :: Range ( ref begin, ref end, Spanned { node : ref end_kind, .. } ) => {
14991499 if let Some ( e) = begin {
15001500 self . print_expr ( e) ;
@@ -1510,7 +1510,7 @@ impl<'a> State<'a> {
15101510 }
15111511 PatKind :: Slice ( ref elts) => {
15121512 self . word ( "[" ) ;
1513- self . commasep ( Inconsistent , & elts, |s, p| s. print_pat ( p) ) ;
1513+ self . commasep ( Inconsistent , elts, |s, p| s. print_pat ( p) ) ;
15141514 self . word ( "]" ) ;
15151515 }
15161516 PatKind :: Rest => self . word ( ".." ) ,
@@ -1596,7 +1596,7 @@ impl<'a> State<'a> {
15961596
15971597 self . word ( "<" ) ;
15981598
1599- self . commasep ( Inconsistent , & generic_params, |s, param| {
1599+ self . commasep ( Inconsistent , generic_params, |s, param| {
16001600 s. print_outer_attributes_inline ( & param. attrs ) ;
16011601
16021602 match param. kind {
0 commit comments