Skip to content

Commit

Permalink
Fix the new unused fields in tuple structs detection
Browse files Browse the repository at this point in the history
  • Loading branch information
saethlin committed Feb 10, 2024
1 parent 17b7658 commit 948b737
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2834,6 +2834,7 @@ mod test_set {
fn test_replace() {
use core::hash;

#[allow(dead_code)] // Having an unused field is the point of this test
#[derive(Debug)]
struct Foo(&'static str, i32);

Expand Down

0 comments on commit 948b737

Please sign in to comment.