diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-08-11 11:05:26 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-08-11 11:10:01 +1000 |
| commit | eb688958d3d87fb1c91d181dc5fbfbef7cfa634d (patch) | |
| tree | 57750f2454836fe5400d60d43639afe93f257ff7 | |
| parent | f719599c0f8eedc504ddedfcbb9e196128b8b129 (diff) | |
| download | rust-eb688958d3d87fb1c91d181dc5fbfbef7cfa634d.tar.gz rust-eb688958d3d87fb1c91d181dc5fbfbef7cfa634d.zip | |
Simplify `rustc_ast::visit::Visitor::visit_poly_trait_ref`.
It is passed an argument that is never used.
| -rw-r--r-- | clippy_lints/src/unused_unit.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/unused_unit.rs b/clippy_lints/src/unused_unit.rs index 52585e59566..cd1d90e860b 100644 --- a/clippy_lints/src/unused_unit.rs +++ b/clippy_lints/src/unused_unit.rs @@ -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! { |
