Skip to content

Commit d4092ac

Browse files
authored
Merge pull request rust-lang#5584 from Mark-Simulacrum/beta-next
Add hint for collect type
2 parents 891e1a8 + 318b8b6 commit d4092ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/utils/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1390,7 +1390,7 @@ pub fn fn_has_unsatisfiable_preds(cx: &LateContext<'_, '_>, did: DefId) -> bool
13901390
.predicates
13911391
.iter()
13921392
.filter_map(|(p, _)| if p.is_global() { Some(*p) } else { None })
1393-
.collect();
1393+
.collect::<Vec<_>>();
13941394
!traits::normalize_and_test_predicates(
13951395
cx.tcx,
13961396
traits::elaborate_predicates(cx.tcx, predicates)

0 commit comments

Comments
 (0)