@@ -519,7 +519,7 @@ pub trait PrintState<'a>: std::ops::Deref<Target = pp::Printer> + std::ops::Dere
519519 ast:: MetaItemKind :: List ( items) => {
520520 self . print_path ( & item. path , false , 0 ) ;
521521 self . popen ( ) ;
522- self . commasep ( Consistent , & items, |s, i| s. print_meta_list_item ( i) ) ;
522+ self . commasep ( Consistent , items, |s, i| s. print_meta_list_item ( i) ) ;
523523 self . pclose ( ) ;
524524 }
525525 }
@@ -536,7 +536,7 @@ pub trait PrintState<'a>: std::ops::Deref<Target = pp::Printer> + std::ops::Dere
536536 fn print_tt ( & mut self , tt : & TokenTree , convert_dollar_crate : bool ) {
537537 match tt {
538538 TokenTree :: Token ( token, _) => {
539- let token_str = self . token_to_string_ext ( & token, convert_dollar_crate) ;
539+ let token_str = self . token_to_string_ext ( token, convert_dollar_crate) ;
540540 self . word ( token_str) ;
541541 if let token:: DocComment ( ..) = token. kind {
542542 self . hardbreak ( )
@@ -998,7 +998,7 @@ impl<'a> State<'a> {
998998 ast:: AssocConstraintKind :: Bound { bounds } => {
999999 if !bounds. is_empty ( ) {
10001000 self . word_nbsp ( ":" ) ;
1001- self . print_type_bounds ( & bounds) ;
1001+ self . print_type_bounds ( bounds) ;
10021002 }
10031003 }
10041004 }
@@ -1035,7 +1035,7 @@ impl<'a> State<'a> {
10351035 }
10361036 ast:: TyKind :: Tup ( elts) => {
10371037 self . popen ( ) ;
1038- self . commasep ( Inconsistent , & elts, |s, ty| s. print_type ( ty) ) ;
1038+ self . commasep ( Inconsistent , elts, |s, ty| s. print_type ( ty) ) ;
10391039 if elts. len ( ) == 1 {
10401040 self . word ( "," ) ;
10411041 }
@@ -1254,7 +1254,7 @@ impl<'a> State<'a> {
12541254
12551255 self . popen ( ) ;
12561256 self . commasep ( Consistent , & args, |s, arg| match arg {
1257- AsmArg :: Template ( template) => s. print_string ( & template, ast:: StrStyle :: Cooked ) ,
1257+ AsmArg :: Template ( template) => s. print_string ( template, ast:: StrStyle :: Cooked ) ,
12581258 AsmArg :: Operand ( op) => {
12591259 let print_reg_or_class = |s : & mut Self , r : & InlineAsmRegOrRegClass | match r {
12601260 InlineAsmRegOrRegClass :: Reg ( r) => s. print_symbol ( * r, ast:: StrStyle :: Cooked ) ,
@@ -1424,11 +1424,11 @@ impl<'a> State<'a> {
14241424 self . print_path ( path, true , 0 ) ;
14251425 }
14261426 self . popen ( ) ;
1427- self . commasep ( Inconsistent , & elts, |s, p| s. print_pat ( p) ) ;
1427+ self . commasep ( Inconsistent , elts, |s, p| s. print_pat ( p) ) ;
14281428 self . pclose ( ) ;
14291429 }
14301430 PatKind :: Or ( pats) => {
1431- self . strsep ( "|" , true , Inconsistent , & pats, |s, p| s. print_pat ( p) ) ;
1431+ self . strsep ( "|" , true , Inconsistent , pats, |s, p| s. print_pat ( p) ) ;
14321432 }
14331433 PatKind :: Path ( None , path) => {
14341434 self . print_path ( path, true , 0 ) ;
@@ -1450,7 +1450,7 @@ impl<'a> State<'a> {
14501450 }
14511451 self . commasep_cmnt (
14521452 Consistent ,
1453- & fields,
1453+ fields,
14541454 |s, f| {
14551455 s. cbox ( INDENT_UNIT ) ;
14561456 if !f. is_shorthand {
@@ -1475,7 +1475,7 @@ impl<'a> State<'a> {
14751475 }
14761476 PatKind :: Tuple ( elts) => {
14771477 self . popen ( ) ;
1478- self . commasep ( Inconsistent , & elts, |s, p| s. print_pat ( p) ) ;
1478+ self . commasep ( Inconsistent , elts, |s, p| s. print_pat ( p) ) ;
14791479 if elts. len ( ) == 1 {
14801480 self . word ( "," ) ;
14811481 }
@@ -1498,7 +1498,7 @@ impl<'a> State<'a> {
14981498 self . print_pat ( inner) ;
14991499 }
15001500 }
1501- PatKind :: Lit ( e) => self . print_expr ( & * * e) ,
1501+ PatKind :: Lit ( e) => self . print_expr ( e) ,
15021502 PatKind :: Range ( begin, end, Spanned { node : end_kind, .. } ) => {
15031503 if let Some ( e) = begin {
15041504 self . print_expr ( e) ;
@@ -1514,7 +1514,7 @@ impl<'a> State<'a> {
15141514 }
15151515 PatKind :: Slice ( elts) => {
15161516 self . word ( "[" ) ;
1517- self . commasep ( Inconsistent , & elts, |s, p| s. print_pat ( p) ) ;
1517+ self . commasep ( Inconsistent , elts, |s, p| s. print_pat ( p) ) ;
15181518 self . word ( "]" ) ;
15191519 }
15201520 PatKind :: Rest => self . word ( ".." ) ,
@@ -1600,7 +1600,7 @@ impl<'a> State<'a> {
16001600
16011601 self . word ( "<" ) ;
16021602
1603- self . commasep ( Inconsistent , & generic_params, |s, param| {
1603+ self . commasep ( Inconsistent , generic_params, |s, param| {
16041604 s. print_outer_attributes_inline ( & param. attrs ) ;
16051605
16061606 match & param. kind {
0 commit comments