Skip to content

Commit 370fc45

Browse files
ThibsGebroto
andauthored
Update clippy_lints/src/methods/mod.rs
Co-authored-by: Eduardo Broto <[email protected]>
1 parent 3d820f7 commit 370fc45

File tree

1 file changed

+1
-5
lines changed
  • clippy_lints/src/methods

1 file changed

+1
-5
lines changed

clippy_lints/src/methods/mod.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2150,11 +2150,7 @@ fn lint_clone_on_ref_ptr(cx: &LateContext<'_>, expr: &hir::Expr<'_>, arg: &hir::
21502150
return;
21512151
};
21522152

2153-
let snippet = if in_macro(arg.span) {
2154-
snippet_with_macro_callsite(cx, arg.span, "_")
2155-
} else {
2156-
snippet(cx, arg.span, "_")
2157-
};
2153+
let snippet = snippet_with_macro_callsite(cx, arg.span, "_");
21582154

21592155
span_lint_and_sugg(
21602156
cx,

0 commit comments

Comments
 (0)