mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
Simplify rustc_ast::visit::Visitor::visit_poly_trait_ref
.
It is passed an argument that is never used.
This commit is contained in:
parent
f719599c0f
commit
eb688958d3
1 changed files with 1 additions and 1 deletions
|
@ -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! {
|
||||
|
|
Loading…
Reference in a new issue