Skip to content

Commit

Permalink
Simplify rustc_ast::visit::Visitor::visit_poly_trait_ref.
Browse files Browse the repository at this point in the history
It is passed an argument that is never used.
  • Loading branch information
nnethercote committed Aug 11, 2022
1 parent f719599 commit eb68895
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 eb68895

Please sign in to comment.