@@ -519,7 +519,7 @@ pub trait PrintState<'a>: std::ops::Deref<Target = pp::Printer> + std::ops::Dere
519
519
ast:: MetaItemKind :: List ( items) => {
520
520
self . print_path ( & item. path , false , 0 ) ;
521
521
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) ) ;
523
523
self . pclose ( ) ;
524
524
}
525
525
}
@@ -536,7 +536,7 @@ pub trait PrintState<'a>: std::ops::Deref<Target = pp::Printer> + std::ops::Dere
536
536
fn print_tt ( & mut self , tt : & TokenTree , convert_dollar_crate : bool ) {
537
537
match tt {
538
538
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) ;
540
540
self . word ( token_str) ;
541
541
if let token:: DocComment ( ..) = token. kind {
542
542
self . hardbreak ( )
@@ -998,7 +998,7 @@ impl<'a> State<'a> {
998
998
ast:: AssocConstraintKind :: Bound { bounds } => {
999
999
if !bounds. is_empty ( ) {
1000
1000
self . word_nbsp ( ":" ) ;
1001
- self . print_type_bounds ( & bounds) ;
1001
+ self . print_type_bounds ( bounds) ;
1002
1002
}
1003
1003
}
1004
1004
}
@@ -1035,7 +1035,7 @@ impl<'a> State<'a> {
1035
1035
}
1036
1036
ast:: TyKind :: Tup ( elts) => {
1037
1037
self . popen ( ) ;
1038
- self . commasep ( Inconsistent , & elts, |s, ty| s. print_type ( ty) ) ;
1038
+ self . commasep ( Inconsistent , elts, |s, ty| s. print_type ( ty) ) ;
1039
1039
if elts. len ( ) == 1 {
1040
1040
self . word ( "," ) ;
1041
1041
}
@@ -1254,7 +1254,7 @@ impl<'a> State<'a> {
1254
1254
1255
1255
self . popen ( ) ;
1256
1256
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 ) ,
1258
1258
AsmArg :: Operand ( op) => {
1259
1259
let print_reg_or_class = |s : & mut Self , r : & InlineAsmRegOrRegClass | match r {
1260
1260
InlineAsmRegOrRegClass :: Reg ( r) => s. print_symbol ( * r, ast:: StrStyle :: Cooked ) ,
@@ -1424,11 +1424,11 @@ impl<'a> State<'a> {
1424
1424
self . print_path ( path, true , 0 ) ;
1425
1425
}
1426
1426
self . popen ( ) ;
1427
- self . commasep ( Inconsistent , & elts, |s, p| s. print_pat ( p) ) ;
1427
+ self . commasep ( Inconsistent , elts, |s, p| s. print_pat ( p) ) ;
1428
1428
self . pclose ( ) ;
1429
1429
}
1430
1430
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) ) ;
1432
1432
}
1433
1433
PatKind :: Path ( None , path) => {
1434
1434
self . print_path ( path, true , 0 ) ;
@@ -1450,7 +1450,7 @@ impl<'a> State<'a> {
1450
1450
}
1451
1451
self . commasep_cmnt (
1452
1452
Consistent ,
1453
- & fields,
1453
+ fields,
1454
1454
|s, f| {
1455
1455
s. cbox ( INDENT_UNIT ) ;
1456
1456
if !f. is_shorthand {
@@ -1475,7 +1475,7 @@ impl<'a> State<'a> {
1475
1475
}
1476
1476
PatKind :: Tuple ( elts) => {
1477
1477
self . popen ( ) ;
1478
- self . commasep ( Inconsistent , & elts, |s, p| s. print_pat ( p) ) ;
1478
+ self . commasep ( Inconsistent , elts, |s, p| s. print_pat ( p) ) ;
1479
1479
if elts. len ( ) == 1 {
1480
1480
self . word ( "," ) ;
1481
1481
}
@@ -1498,7 +1498,7 @@ impl<'a> State<'a> {
1498
1498
self . print_pat ( inner) ;
1499
1499
}
1500
1500
}
1501
- PatKind :: Lit ( e) => self . print_expr ( & * * e) ,
1501
+ PatKind :: Lit ( e) => self . print_expr ( e) ,
1502
1502
PatKind :: Range ( begin, end, Spanned { node : end_kind, .. } ) => {
1503
1503
if let Some ( e) = begin {
1504
1504
self . print_expr ( e) ;
@@ -1514,7 +1514,7 @@ impl<'a> State<'a> {
1514
1514
}
1515
1515
PatKind :: Slice ( elts) => {
1516
1516
self . word ( "[" ) ;
1517
- self . commasep ( Inconsistent , & elts, |s, p| s. print_pat ( p) ) ;
1517
+ self . commasep ( Inconsistent , elts, |s, p| s. print_pat ( p) ) ;
1518
1518
self . word ( "]" ) ;
1519
1519
}
1520
1520
PatKind :: Rest => self . word ( ".." ) ,
@@ -1600,7 +1600,7 @@ impl<'a> State<'a> {
1600
1600
1601
1601
self . word ( "<" ) ;
1602
1602
1603
- self . commasep ( Inconsistent , & generic_params, |s, param| {
1603
+ self . commasep ( Inconsistent , generic_params, |s, param| {
1604
1604
s. print_outer_attributes_inline ( & param. attrs ) ;
1605
1605
1606
1606
match & param. kind {
0 commit comments