@@ -855,15 +855,15 @@ impl<'a, 'tcx, 'v> Visitor<'v> for PrivacyVisitor<'a, 'tcx> {
855
855
fn visit_expr ( & mut self , expr : & hir:: Expr ) {
856
856
match expr. node {
857
857
hir:: ExprField ( ref base, name) => {
858
- if let ty:: TyStruct ( def, _) = self . tcx . expr_ty_adjusted ( & * * base) . sty {
858
+ if let ty:: TyStruct ( def, _) = self . tcx . expr_ty_adjusted ( & base) . sty {
859
859
self . check_field ( expr. span ,
860
860
def,
861
861
def. struct_variant ( ) ,
862
862
NamedField ( name. node ) ) ;
863
863
}
864
864
}
865
865
hir:: ExprTupField ( ref base, idx) => {
866
- if let ty:: TyStruct ( def, _) = self . tcx . expr_ty_adjusted ( & * * base) . sty {
866
+ if let ty:: TyStruct ( def, _) = self . tcx . expr_ty_adjusted ( & base) . sty {
867
867
self . check_field ( expr. span ,
868
868
def,
869
869
def. struct_variant ( ) ,
@@ -1238,7 +1238,7 @@ impl<'a, 'tcx, 'v> Visitor<'v> for ObsoleteVisiblePrivateTypesVisitor<'a, 'tcx>
1238
1238
at_outer_type : true ,
1239
1239
outer_type_is_public_path : false ,
1240
1240
} ;
1241
- visitor. visit_ty ( & * * self_) ;
1241
+ visitor. visit_ty ( & self_) ;
1242
1242
self_contains_private = visitor. contains_private ;
1243
1243
self_is_public_path = visitor. outer_type_is_public_path ;
1244
1244
}
@@ -1395,7 +1395,7 @@ impl<'a, 'tcx, 'v> Visitor<'v> for ObsoleteVisiblePrivateTypesVisitor<'a, 'tcx>
1395
1395
}
1396
1396
& hir:: WherePredicate :: RegionPredicate ( _) => { }
1397
1397
& hir:: WherePredicate :: EqPredicate ( ref eq_pred) => {
1398
- self . visit_ty ( & * eq_pred. ty ) ;
1398
+ self . visit_ty ( & eq_pred. ty ) ;
1399
1399
}
1400
1400
}
1401
1401
}
0 commit comments