Skip to content

Commit f4fc150

Browse files
committed
Fix dead code warning in issue 795 regression test
warning: field is never read: `x` --> tests/regression/issue795.rs:9:15 | 9 | Variant { x: u8 }, | ^^^^^ | = note: `#[warn(dead_code)]` on by default
1 parent 133bb61 commit f4fc150

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/regression/issue795.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use serde_json::json;
55
use std::fmt;
66

77
#[derive(Debug)]
8-
enum Enum {
8+
pub enum Enum {
99
Variant { x: u8 },
1010
}
1111

0 commit comments

Comments
 (0)