Skip to content

Commit

Permalink
Update clippy_lints/src/pathbuf_init_then_push.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Fridtjof Stoldt <[email protected]>
  • Loading branch information
lengyijun and xFrednet authored Jun 22, 2024
1 parent cc6d79a commit 7f8f7f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clippy_lints/src/pathbuf_init_then_push.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ impl<'tcx> PathbufPushSearcher<'tcx> {
}

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

0 comments on commit 7f8f7f2

Please sign in to comment.