Skip to content

Commit

Permalink
Add cfg allow to multi autodrop test where clippy reports a false pos…
Browse files Browse the repository at this point in the history
…itive
  • Loading branch information
foresterre committed Jun 3, 2023
1 parent b6f2002 commit 25ecd77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/multi-autodrop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ fn main() {
};

{
// TODO(clippy false positive): https://github.com/rust-lang/rust-clippy/issues/10577
#[allow(clippy::redundant_clone)]
let pb2 = pb.clone();
for _ in 0..10 {
pb2.inc(1);
Expand Down

0 comments on commit 25ecd77

Please sign in to comment.