@@ -468,7 +468,7 @@ impl <'l, 'tcx> DumpCsvVisitor<'l, 'tcx> {
468468 & name. as_str ( ) ,
469469 & qualname,
470470 & self . span . snippet ( expr. span ) ,
471- & ty_to_string ( & * typ) ,
471+ & ty_to_string ( & typ) ,
472472 self . cur_scope ) ;
473473
474474 // walk type and init value
@@ -550,7 +550,7 @@ impl <'l, 'tcx> DumpCsvVisitor<'l, 'tcx> {
550550
551551 for field in variant. node . data . fields ( ) {
552552 self . process_struct_field_def ( field, variant. node . data . id ( ) ) ;
553- self . visit_ty ( & * field. node . ty ) ;
553+ self . visit_ty ( & field. node . ty ) ;
554554 }
555555 }
556556 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> {
970970 self . cur_scope ) ;
971971 }
972972 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) ,
974974 Static ( ref typ, _, ref expr) =>
975975 self . process_static_or_const_item ( item, typ, expr) ,
976976 Const ( ref typ, ref expr) =>
@@ -992,11 +992,11 @@ impl<'l, 'tcx, 'v> Visitor<'v> for DumpCsvVisitor<'l, 'tcx> {
992992 }
993993 Ty ( ref ty, ref ty_params) => {
994994 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) ;
996996 let sub_span = self . span . sub_span_after_keyword ( item. span , keywords:: Type ) ;
997997 self . fmt . typedef_str ( item. span , sub_span, item. id , & qualname, & value) ;
998998
999- self . visit_ty ( & * * ty) ;
999+ self . visit_ty ( & ty) ;
10001000 self . process_generic_params ( ty_params, item. span , & qualname, item. id ) ;
10011001 }
10021002 Mac ( _) => ( ) ,
@@ -1012,7 +1012,7 @@ impl<'l, 'tcx, 'v> Visitor<'v> for DumpCsvVisitor<'l, 'tcx> {
10121012 }
10131013 }
10141014 if let Some ( ref ty) = param. default {
1015- self . visit_ty ( & * * ty) ;
1015+ self . visit_ty ( & ty) ;
10161016 }
10171017 }
10181018 }
@@ -1024,8 +1024,8 @@ impl<'l, 'tcx, 'v> Visitor<'v> for DumpCsvVisitor<'l, 'tcx> {
10241024 self . process_const ( trait_item. id ,
10251025 trait_item. ident . name ,
10261026 trait_item. span ,
1027- & * ty,
1028- & * expr) ;
1027+ & ty,
1028+ & expr) ;
10291029 }
10301030 ast:: TraitItemKind :: Method ( ref sig, ref body) => {
10311031 self . process_method ( sig,
@@ -1113,7 +1113,7 @@ impl<'l, 'tcx, 'v> Visitor<'v> for DumpCsvVisitor<'l, 'tcx> {
11131113 }
11141114 }
11151115 ast:: ExprKind :: TupField ( ref sub_ex, idx) => {
1116- self . visit_expr ( & * * sub_ex) ;
1116+ self . visit_expr ( & sub_ex) ;
11171117
11181118 let hir_node = lower_expr ( self . save_ctxt . lcx , sub_ex) ;
11191119 let ty = & self . tcx . expr_ty_adjusted ( & hir_node) . sty ;
@@ -1139,15 +1139,15 @@ impl<'l, 'tcx, 'v> Visitor<'v> for DumpCsvVisitor<'l, 'tcx> {
11391139
11401140 // walk arg and return types
11411141 for arg in & decl. inputs {
1142- self . visit_ty ( & * arg. ty ) ;
1142+ self . visit_ty ( & arg. ty ) ;
11431143 }
11441144
11451145 if let ast:: FunctionRetTy :: Ty ( ref ret_ty) = decl. output {
1146- self . visit_ty ( & * * ret_ty) ;
1146+ self . visit_ty ( & ret_ty) ;
11471147 }
11481148
11491149 // walk the body
1150- self . nest ( ex. id , |v| v. visit_block ( & * * body) ) ;
1150+ self . nest ( ex. id , |v| v. visit_block ( & body) ) ;
11511151 }
11521152 ast:: ExprKind :: ForLoop ( ref pattern, ref subexpression, ref block, _) |
11531153 ast:: ExprKind :: WhileLet ( ref pattern, ref subexpression, ref block, _) => {
0 commit comments