Skip to content

Commit 7f8f7f2

Browse files
lengyijunxFrednet
andauthored
Update clippy_lints/src/pathbuf_init_then_push.rs
Co-authored-by: Fridtjof Stoldt <[email protected]>
1 parent cc6d79a commit 7f8f7f2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_lints/src/pathbuf_init_then_push.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ impl<'tcx> PathbufPushSearcher<'tcx> {
8484
}
8585

8686
fn display_err(&self, cx: &LateContext<'_>) {
87+
if clippy_utils::attrs::span_contains_cfg(self.err_span) { return; }
8788
let mut sugg = if self.lhs_is_let {
8889
String::from("let mut ")
8990
} else {

0 commit comments

Comments
 (0)