@@ -532,7 +532,7 @@ impl_lint_pass!(Casts => [
532532impl < ' tcx > LateLintPass < ' tcx > for Casts {
533533 fn check_expr ( & mut self , cx : & LateContext < ' tcx > , expr : & ' tcx Expr < ' _ > ) {
534534 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 ) ;
536536 }
537537
538538 if expr. span . from_expansion ( ) {
@@ -562,18 +562,18 @@ impl<'tcx> LateLintPass<'tcx> for Casts {
562562 cast_possible_wrap:: check ( cx, expr, cast_from, cast_to) ;
563563 cast_precision_loss:: check ( cx, expr, cast_from, cast_to) ;
564564 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 ) ;
566566 }
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 ) ;
568568 cast_enum_constructor:: check ( cx, expr, cast_expr, cast_from) ;
569569 }
570570 }
571571
572572 cast_ref_to_mut:: check ( cx, expr) ;
573573 cast_ptr_alignment:: check ( cx, expr) ;
574574 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 ) ;
577577 }
578578
579579 extract_msrv_attr ! ( LateContext ) ;
0 commit comments