mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-19 23:48:44 +00:00
Update clippy_lints/src/methods/mod.rs
Co-authored-by: Eduardo Broto <ebroto@tutanota.com>
This commit is contained in:
parent
3d820f71fe
commit
370fc45a0a
1 changed files with 1 additions and 5 deletions
|
@ -2150,11 +2150,7 @@ fn lint_clone_on_ref_ptr(cx: &LateContext<'_>, expr: &hir::Expr<'_>, arg: &hir::
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|
||||||
let snippet = if in_macro(arg.span) {
|
let snippet = snippet_with_macro_callsite(cx, arg.span, "_");
|
||||||
snippet_with_macro_callsite(cx, arg.span, "_")
|
|
||||||
} else {
|
|
||||||
snippet(cx, arg.span, "_")
|
|
||||||
};
|
|
||||||
|
|
||||||
span_lint_and_sugg(
|
span_lint_and_sugg(
|
||||||
cx,
|
cx,
|
||||||
|
|
Loading…
Add table
Reference in a new issue