Skip to content

Commit

Permalink
Fix warnings from better precision of dead_code lint
Browse files Browse the repository at this point in the history
The lint now ignores derived `Clone` and `Debug` implementations, as of
PR rust-lang/rust#85200, which landed a couple of days ago.

I sprinkled `#[allow(dead_code)]` in a few places; the fields are not
expected to be read since they are just part of a very specific test.
  • Loading branch information
camelid committed Sep 13, 2021
1 parent 2274489 commit f6823a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/testsuite/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,7 @@ Caused by:
);

#[derive(Debug, Deserialize)]
#[allow(dead_code)]
struct S {
f1: i64,
f2: String,
Expand Down Expand Up @@ -1155,6 +1156,7 @@ fn table_merge_failure() {
);

#[derive(Debug, Deserialize)]
#[allow(dead_code)]
struct Table {
key: StringList,
}
Expand Down

0 comments on commit f6823a6

Please sign in to comment.