Skip to content

Commit 0668621

Browse files
authored
Merge pull request #48 from dtolnay/deadcode
Ignore intentional unconstructed struct in ui test helper crate
2 parents daead7d + 8f21f8f commit 0668621

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/helper/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
#![allow(dead_code)]
2+
13
use ref_cast::RefCastCustom;
24

35
#[derive(RefCastCustom)]
46
#[repr(transparent)]
5-
pub struct Struct(#[allow(dead_code)] str);
7+
pub struct Struct(str);

0 commit comments

Comments
 (0)