Skip to content

Commit 948b737

Browse files
committed
Fix the new unused fields in tuple structs detection
1 parent 17b7658 commit 948b737

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/set.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2834,6 +2834,7 @@ mod test_set {
28342834
fn test_replace() {
28352835
use core::hash;
28362836

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

0 commit comments

Comments
 (0)