Skip to content

Commit 62969d5

Browse files
committed
Ignore new dead_code warnings in test
Since nightly-2024-03-12. warning: struct `S` is never constructed --> tests/test.rs:366:12 | 366 | struct S {} | ^ | = note: `#[warn(dead_code)]` on by default warning: struct `Struct` is never constructed --> tests/test.rs:1492:12 | 1492 | struct Struct; | ^^^^^^
1 parent d8c07fc commit 62969d5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ pub mod issue23 {
363363
}
364364
}
365365

366+
#[allow(dead_code)]
366367
struct S {}
367368

368369
#[async_trait]
@@ -1489,6 +1490,7 @@ pub mod issue226 {
14891490
async fn cfg_param_tuple(&self, (left, right): (u8, u8));
14901491
}
14911492

1493+
#[allow(dead_code)]
14921494
struct Struct;
14931495

14941496
#[async_trait]

0 commit comments

Comments
 (0)