Skip to content

Commit

Permalink
Fix dead code warning in issue 795 regression test
Browse files Browse the repository at this point in the history
    warning: field is never read: `x`
     --> tests/regression/issue795.rs:9:15
      |
    9 |     Variant { x: u8 },
      |               ^^^^^
      |
      = note: `#[warn(dead_code)]` on by default
  • Loading branch information
dtolnay committed Sep 14, 2021
1 parent 133bb61 commit f4fc150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/regression/issue795.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use serde_json::json;
use std::fmt;

#[derive(Debug)]
enum Enum {
pub enum Enum {
Variant { x: u8 },
}

Expand Down

0 comments on commit f4fc150

Please sign in to comment.