Skip to content

Commit 9a8b050

Browse files
committed
Work around dead_code warning in test
warning: field `0` is never read --> tests/test.rs:678:22 | 678 | pub struct Tuple(u8); | ----- ^^ | | | field in this struct | = note: `#[warn(dead_code)]` on by default help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 678 | pub struct Tuple(()); | ~~
1 parent 7084226 commit 9a8b050

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ pub mod issue53 {
675675
use async_trait::async_trait;
676676

677677
pub struct Unit;
678-
pub struct Tuple(u8);
678+
pub struct Tuple(pub u8);
679679
pub struct Struct {
680680
pub x: u8,
681681
}

0 commit comments

Comments
 (0)