Skip to content

Commit 00b3c14

Browse files
committed
Work around new dead code warning in test
warning: struct `StructTransparentGeneric` is never constructed --> tests/test_generics.rs:161:12 | 161 | pub struct StructTransparentGeneric<E>(E); | ^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default
1 parent 915c75e commit 00b3c14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_generics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,4 @@ pub struct StructFromGeneric<E> {
158158
//
159159
#[derive(Error, Debug)]
160160
#[error(transparent)]
161-
pub struct StructTransparentGeneric<E>(E);
161+
pub struct StructTransparentGeneric<E>(pub E);

0 commit comments

Comments
 (0)