@@ -468,7 +468,7 @@ impl <'l, 'tcx> DumpCsvVisitor<'l, 'tcx> {
468
468
& name. as_str ( ) ,
469
469
& qualname,
470
470
& self . span . snippet ( expr. span ) ,
471
- & ty_to_string ( & * typ) ,
471
+ & ty_to_string ( & typ) ,
472
472
self . cur_scope ) ;
473
473
474
474
// walk type and init value
@@ -550,7 +550,7 @@ impl <'l, 'tcx> DumpCsvVisitor<'l, 'tcx> {
550
550
551
551
for field in variant. node . data . fields ( ) {
552
552
self . process_struct_field_def ( field, variant. node . data . id ( ) ) ;
553
- self . visit_ty ( & * field. node . ty ) ;
553
+ self . visit_ty ( & field. node . ty ) ;
554
554
}
555
555
}
556
556
self . process_generic_params ( ty_params, item. span , & enum_data. qualname , enum_data. id ) ;
@@ -970,7 +970,7 @@ impl<'l, 'tcx, 'v> Visitor<'v> for DumpCsvVisitor<'l, 'tcx> {
970
970
self . cur_scope ) ;
971
971
}
972
972
Fn ( ref decl, _, _, _, ref ty_params, ref body) =>
973
- self . process_fn ( item, & * * decl, ty_params, & * * body) ,
973
+ self . process_fn ( item, & decl, ty_params, & body) ,
974
974
Static ( ref typ, _, ref expr) =>
975
975
self . process_static_or_const_item ( item, typ, expr) ,
976
976
Const ( ref typ, ref expr) =>
@@ -992,11 +992,11 @@ impl<'l, 'tcx, 'v> Visitor<'v> for DumpCsvVisitor<'l, 'tcx> {
992
992
}
993
993
Ty ( ref ty, ref ty_params) => {
994
994
let qualname = format ! ( "::{}" , self . tcx. map. path_to_string( item. id) ) ;
995
- let value = ty_to_string ( & * * ty) ;
995
+ let value = ty_to_string ( & ty) ;
996
996
let sub_span = self . span . sub_span_after_keyword ( item. span , keywords:: Type ) ;
997
997
self . fmt . typedef_str ( item. span , sub_span, item. id , & qualname, & value) ;
998
998
999
- self . visit_ty ( & * * ty) ;
999
+ self . visit_ty ( & ty) ;
1000
1000
self . process_generic_params ( ty_params, item. span , & qualname, item. id ) ;
1001
1001
}
1002
1002
Mac ( _) => ( ) ,
@@ -1012,7 +1012,7 @@ impl<'l, 'tcx, 'v> Visitor<'v> for DumpCsvVisitor<'l, 'tcx> {
1012
1012
}
1013
1013
}
1014
1014
if let Some ( ref ty) = param. default {
1015
- self . visit_ty ( & * * ty) ;
1015
+ self . visit_ty ( & ty) ;
1016
1016
}
1017
1017
}
1018
1018
}
@@ -1024,8 +1024,8 @@ impl<'l, 'tcx, 'v> Visitor<'v> for DumpCsvVisitor<'l, 'tcx> {
1024
1024
self . process_const ( trait_item. id ,
1025
1025
trait_item. ident . name ,
1026
1026
trait_item. span ,
1027
- & * ty,
1028
- & * expr) ;
1027
+ & ty,
1028
+ & expr) ;
1029
1029
}
1030
1030
ast:: TraitItemKind :: Method ( ref sig, ref body) => {
1031
1031
self . process_method ( sig,
@@ -1113,7 +1113,7 @@ impl<'l, 'tcx, 'v> Visitor<'v> for DumpCsvVisitor<'l, 'tcx> {
1113
1113
}
1114
1114
}
1115
1115
ast:: ExprKind :: TupField ( ref sub_ex, idx) => {
1116
- self . visit_expr ( & * * sub_ex) ;
1116
+ self . visit_expr ( & sub_ex) ;
1117
1117
1118
1118
let hir_node = lower_expr ( self . save_ctxt . lcx , sub_ex) ;
1119
1119
let ty = & self . tcx . expr_ty_adjusted ( & hir_node) . sty ;
@@ -1139,15 +1139,15 @@ impl<'l, 'tcx, 'v> Visitor<'v> for DumpCsvVisitor<'l, 'tcx> {
1139
1139
1140
1140
// walk arg and return types
1141
1141
for arg in & decl. inputs {
1142
- self . visit_ty ( & * arg. ty ) ;
1142
+ self . visit_ty ( & arg. ty ) ;
1143
1143
}
1144
1144
1145
1145
if let ast:: FunctionRetTy :: Ty ( ref ret_ty) = decl. output {
1146
- self . visit_ty ( & * * ret_ty) ;
1146
+ self . visit_ty ( & ret_ty) ;
1147
1147
}
1148
1148
1149
1149
// walk the body
1150
- self . nest ( ex. id , |v| v. visit_block ( & * * body) ) ;
1150
+ self . nest ( ex. id , |v| v. visit_block ( & body) ) ;
1151
1151
}
1152
1152
ast:: ExprKind :: ForLoop ( ref pattern, ref subexpression, ref block, _) |
1153
1153
ast:: ExprKind :: WhileLet ( ref pattern, ref subexpression, ref block, _) => {
0 commit comments