Skip to content

Commit

Permalink
Fixed merge mistake in trait_bounds.
Browse files Browse the repository at this point in the history
  • Loading branch information
xd009642 committed Apr 8, 2019
1 parent 58988c6 commit 2a6708b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clippy_lints/src/trait_bounds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for TraitBounds {
let mut set = FxHashSet::default();
for bound in &gen.where_clause.predicates {
if let WherePredicate::BoundPredicate(ref p) = bound {
let h = hash(&p.bounded_ty);
if !set.insert(h) {
span_help_and_lint(
cx,
Expand Down

0 comments on commit 2a6708b

Please sign in to comment.