@@ -422,7 +422,7 @@ impl<'tcx> LateLintPass<'tcx> for LintWithoutLintPass {
422422 }
423423 } else if let Some ( macro_call) = root_macro_call_first_node ( cx, item) {
424424 if !matches ! (
425- & * cx. tcx. item_name( macro_call. def_id) . as_str( ) ,
425+ cx. tcx. item_name( macro_call. def_id) . as_str( ) ,
426426 "impl_lint_pass" | "declare_lint_pass"
427427 ) {
428428 return ;
@@ -504,7 +504,7 @@ fn check_invalid_clippy_version_attribute(cx: &LateContext<'_>, item: &'_ Item<'
504504 return ;
505505 }
506506
507- if RustcVersion :: parse ( & * value. as_str ( ) ) . is_err ( ) {
507+ if RustcVersion :: parse ( value. as_str ( ) ) . is_err ( ) {
508508 span_lint_and_help (
509509 cx,
510510 INVALID_CLIPPY_VERSION_ATTRIBUTE ,
@@ -595,7 +595,7 @@ impl<'tcx> LateLintPass<'tcx> for CompilerLintFunctions {
595595 if_chain ! {
596596 if let ExprKind :: MethodCall ( path, [ self_arg, ..] , _) = & expr. kind;
597597 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( ) ) ;
599599 let ty = cx. typeck_results( ) . expr_ty( self_arg) . peel_refs( ) ;
600600 if match_type( cx, ty, & paths:: EARLY_CONTEXT )
601601 || match_type( cx, ty, & paths:: LATE_CONTEXT ) ;
@@ -679,7 +679,7 @@ impl<'tcx> LateLintPass<'tcx> for CollapsibleCalls {
679679 then {
680680 let and_then_snippets = get_and_then_snippets( cx, and_then_args) ;
681681 let mut sle = SpanlessEq :: new( cx) . deny_side_effects( ) ;
682- match & * ps. ident. as_str( ) {
682+ match ps. ident. as_str( ) {
683683 "span_suggestion" if sle. eq_expr( & and_then_args[ 2 ] , & span_call_args[ 1 ] ) => {
684684 suggest_suggestion( cx, expr, & and_then_snippets, & span_suggestion_snippets( cx, span_call_args) ) ;
685685 } ,
0 commit comments