Skip to content

Commit 218798b

Browse files
lengyijunxFrednet
andcommitted
Update clippy_lints/src/pathbuf_init_then_push.rs
Co-authored-by: Fridtjof Stoldt <[email protected]>
1 parent b6ac4f4 commit 218798b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clippy_lints/src/pathbuf_init_then_push.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,6 @@ impl<'tcx> LateLintPass<'tcx> for PathbufThenPush<'tcx> {
187187
}
188188

189189
fn check_block_post(&mut self, cx: &LateContext<'tcx>, _: &'tcx Block<'tcx>) {
190-
if let Some(searcher) = self.searcher.take() {
191-
searcher.display_err(cx);
192-
}
190+
self.searcher = None;
193191
}
194192
}

0 commit comments

Comments
 (0)