We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c15a60 commit 0e7fef7Copy full SHA for 0e7fef7
clippy_lints/src/unnecessary_map_on_constructor.rs
@@ -73,7 +73,7 @@ impl<'tcx> LateLintPass<'tcx> for UnnecessaryMapOnConstructor {
73
}
74
75
if let Some(map_arg) = args.get(0)
76
- && let hir::ExprKind::Path(fun) = map_arg.kind
+ && let hir::ExprKind::Path(_) = map_arg.kind
77
{
78
if map_arg.span.from_expansion() {
79
return;
0 commit comments