Skip to content

Commit 4a1701f

Browse files
Update clippy_lints/src/eta_reduction.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent c63d14c commit 4a1701f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_lints/src/eta_reduction.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@ fn is_method_from_ambiguous_crate(cx: &LateContext<'_>, method_def_id: DefId) ->
414414
.crates(())
415415
.iter()
416416
.filter(|&&krate| cx.tcx.crate_name(krate) == method_crate_name)
417+
.take(2)
417418
.count()
418419
> 1
419420
}

0 commit comments

Comments
 (0)