@@ -532,7 +532,7 @@ impl_lint_pass!(Casts => [
532
532
impl < ' tcx > LateLintPass < ' tcx > for Casts {
533
533
fn check_expr ( & mut self , cx : & LateContext < ' tcx > , expr : & ' tcx Expr < ' _ > ) {
534
534
if !in_external_macro ( cx. sess ( ) , expr. span ) {
535
- ptr_as_ptr:: check ( cx, expr, & self . msrv ) ;
535
+ ptr_as_ptr:: check ( cx, expr, self . msrv ) ;
536
536
}
537
537
538
538
if expr. span . from_expansion ( ) {
@@ -562,18 +562,18 @@ impl<'tcx> LateLintPass<'tcx> for Casts {
562
562
cast_possible_wrap:: check ( cx, expr, cast_from, cast_to) ;
563
563
cast_precision_loss:: check ( cx, expr, cast_from, cast_to) ;
564
564
cast_sign_loss:: check ( cx, expr, cast_expr, cast_from, cast_to) ;
565
- cast_abs_to_unsigned:: check ( cx, expr, cast_expr, cast_from, cast_to, & self . msrv ) ;
565
+ cast_abs_to_unsigned:: check ( cx, expr, cast_expr, cast_from, cast_to, self . msrv ) ;
566
566
}
567
- cast_lossless:: check ( cx, expr, cast_expr, cast_from, cast_to, & self . msrv ) ;
567
+ cast_lossless:: check ( cx, expr, cast_expr, cast_from, cast_to, self . msrv ) ;
568
568
cast_enum_constructor:: check ( cx, expr, cast_expr, cast_from) ;
569
569
}
570
570
}
571
571
572
572
cast_ref_to_mut:: check ( cx, expr) ;
573
573
cast_ptr_alignment:: check ( cx, expr) ;
574
574
char_lit_as_u8:: check ( cx, expr) ;
575
- ptr_as_ptr:: check ( cx, expr, & self . msrv ) ;
576
- cast_slice_different_sizes:: check ( cx, expr, & self . msrv ) ;
575
+ ptr_as_ptr:: check ( cx, expr, self . msrv ) ;
576
+ cast_slice_different_sizes:: check ( cx, expr, self . msrv ) ;
577
577
}
578
578
579
579
extract_msrv_attr ! ( LateContext ) ;
0 commit comments