Skip to content

Commit

Permalink
Rollup merge of rust-lang#100392 - nnethercote:simplify-visitors, r=c…
Browse files Browse the repository at this point in the history
…jgillot

Simplify visitors

By removing some unused arguments.

r? `@cjgillot`
  • Loading branch information
matthiaskrgr committed Aug 11, 2022
2 parents cf3f71d + eb68895 commit 4d8b6d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/unused_unit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ impl EarlyLintPass for UnusedUnit {
}
}

fn check_poly_trait_ref(&mut self, cx: &EarlyContext<'_>, poly: &ast::PolyTraitRef, _: &ast::TraitBoundModifier) {
fn check_poly_trait_ref(&mut self, cx: &EarlyContext<'_>, poly: &ast::PolyTraitRef) {
let segments = &poly.trait_ref.path.segments;

if_chain! {
Expand Down

0 comments on commit 4d8b6d4

Please sign in to comment.