Skip to content

Commit 02d6fc7

Browse files
oschwaldclaude
andcommitted
Suppress dead_code warning in test struct
The PartialRead struct fields using IgnoredAny are intentionally not read - they exist to test that the deserializer correctly skips fields during deserialization. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent ff5cc41 commit 02d6fc7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/reader_test.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,6 +1213,7 @@ fn test_ignored_any() {
12131213

12141214
// Struct that only reads some fields, ignoring others via IgnoredAny
12151215
#[derive(Deserialize, Debug)]
1216+
#[allow(dead_code)]
12161217
struct PartialRead {
12171218
utf8_string: String,
12181219
// These fields use IgnoredAny to skip decoding

0 commit comments

Comments
 (0)