We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14f006a commit 3f573b9Copy full SHA for 3f573b9
clippy_lints/src/methods/map_then_identity_transformer.rs
@@ -42,7 +42,7 @@ pub(super) fn check<'tcx>(
42
43
// On a given closure `|.., x| y`, checks if `x` is referenced just exactly once in `y` and returns
44
// the span of `x`
45
-fn refd_param_span<'tcx>(cx: &LateContext<'tcx>, clos_body_id: BodyId) -> Option<Span> {
+fn refd_param_span(cx: &LateContext<'_>, clos_body_id: BodyId) -> Option<Span> {
46
let clos_body = cx.tcx.hir().body(clos_body_id);
47
if_chain! {
48
if let [.., clos_param] = clos_body.params;
0 commit comments