We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a73a25 commit c1b9915Copy full SHA for c1b9915
clippy_lints/src/redundant_closure_call.rs
@@ -104,7 +104,7 @@ impl<'tcx> LateLintPass<'tcx> for RedundantClosureCall {
104
cx: &'a LateContext<'tcx>,
105
path: &'tcx hir::Path<'tcx>,
106
count: usize,
107
- };
+ }
108
impl<'a, 'tcx> hir_visit::Visitor<'tcx> for ClosureUsageCount<'a, 'tcx> {
109
type Map = Map<'tcx>;
110
@@ -124,7 +124,7 @@ impl<'tcx> LateLintPass<'tcx> for RedundantClosureCall {
124
fn nested_visit_map(&mut self) -> hir_visit::NestedVisitorMap<Self::Map> {
125
hir_visit::NestedVisitorMap::OnlyBodies(self.cx.tcx.hir())
126
}
127
128
let mut closure_usage_count = ClosureUsageCount { cx, path, count: 0 };
129
closure_usage_count.visit_block(block);
130
closure_usage_count.count
0 commit comments