Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit eb68895

Browse files
committed
Simplify rustc_ast::visit::Visitor::visit_poly_trait_ref.
It is passed an argument that is never used.
1 parent f719599 commit eb68895

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/unused_unit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ impl EarlyLintPass for UnusedUnit {
8989
}
9090
}
9191

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

9595
if_chain! {

0 commit comments

Comments
 (0)