@@ -422,7 +422,7 @@ impl<'tcx> LateLintPass<'tcx> for LintWithoutLintPass {
422
422
}
423
423
} else if let Some ( macro_call) = root_macro_call_first_node ( cx, item) {
424
424
if !matches ! (
425
- & * cx. tcx. item_name( macro_call. def_id) . as_str( ) ,
425
+ cx. tcx. item_name( macro_call. def_id) . as_str( ) ,
426
426
"impl_lint_pass" | "declare_lint_pass"
427
427
) {
428
428
return ;
@@ -504,7 +504,7 @@ fn check_invalid_clippy_version_attribute(cx: &LateContext<'_>, item: &'_ Item<'
504
504
return ;
505
505
}
506
506
507
- if RustcVersion :: parse ( & * value. as_str ( ) ) . is_err ( ) {
507
+ if RustcVersion :: parse ( value. as_str ( ) ) . is_err ( ) {
508
508
span_lint_and_help (
509
509
cx,
510
510
INVALID_CLIPPY_VERSION_ATTRIBUTE ,
@@ -595,7 +595,7 @@ impl<'tcx> LateLintPass<'tcx> for CompilerLintFunctions {
595
595
if_chain ! {
596
596
if let ExprKind :: MethodCall ( path, [ self_arg, ..] , _) = & expr. kind;
597
597
let fn_name = path. ident;
598
- if let Some ( sugg) = self . map. get( & * fn_name. as_str( ) ) ;
598
+ if let Some ( sugg) = self . map. get( fn_name. as_str( ) ) ;
599
599
let ty = cx. typeck_results( ) . expr_ty( self_arg) . peel_refs( ) ;
600
600
if match_type( cx, ty, & paths:: EARLY_CONTEXT )
601
601
|| match_type( cx, ty, & paths:: LATE_CONTEXT ) ;
@@ -679,7 +679,7 @@ impl<'tcx> LateLintPass<'tcx> for CollapsibleCalls {
679
679
then {
680
680
let and_then_snippets = get_and_then_snippets( cx, and_then_args) ;
681
681
let mut sle = SpanlessEq :: new( cx) . deny_side_effects( ) ;
682
- match & * ps. ident. as_str( ) {
682
+ match ps. ident. as_str( ) {
683
683
"span_suggestion" if sle. eq_expr( & and_then_args[ 2 ] , & span_call_args[ 1 ] ) => {
684
684
suggest_suggestion( cx, expr, & and_then_snippets, & span_suggestion_snippets( cx, span_call_args) ) ;
685
685
} ,
0 commit comments