Skip to content

Commit 0e7fef7

Browse files
committed
remove unused variable
1 parent 4c15a60 commit 0e7fef7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/unnecessary_map_on_constructor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ impl<'tcx> LateLintPass<'tcx> for UnnecessaryMapOnConstructor {
7373
}
7474

7575
if let Some(map_arg) = args.get(0)
76-
&& let hir::ExprKind::Path(fun) = map_arg.kind
76+
&& let hir::ExprKind::Path(_) = map_arg.kind
7777
{
7878
if map_arg.span.from_expansion() {
7979
return;

0 commit comments

Comments
 (0)