From 4a00d732460d37e219755bfc6db132b42b8c4af1 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 7 Jun 2024 20:04:24 -0700 Subject: [PATCH] Work around dead code warning in test warning: struct `Struct` is never constructed --> tests/test.rs:338:16 | 338 | pub struct Struct { | ^^^^^^ | = note: `#[warn(dead_code)]` on by default --- tests/test.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test.rs b/tests/test.rs index 80767fe..75252c2 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -336,7 +336,7 @@ pub mod issue17 { } pub struct Struct { - string: String, + pub string: String, } #[async_trait]