Skip to content

Commit

Permalink
Work around dead code warning in test
Browse files Browse the repository at this point in the history
    warning: struct `Struct` is never constructed
       --> tests/test.rs:338:16
        |
    338 |     pub struct Struct {
        |                ^^^^^^
        |
        = note: `#[warn(dead_code)]` on by default
  • Loading branch information
dtolnay committed Jun 8, 2024
1 parent dba15b5 commit 4a00d73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ pub mod issue17 {
}

pub struct Struct {
string: String,
pub string: String,
}

#[async_trait]
Expand Down

0 comments on commit 4a00d73

Please sign in to comment.