Skip to content

Commit 8527701

Browse files
committed
Remove unused field warnings in test-parse-unittests.
The fields `UID` and `int` are not used, however, they are part of the file format and should not be removed.
1 parent d8c87cd commit 8527701

File tree

1 file changed

+2
-0
lines changed
  • lexical-parse-float/etc/correctness/test-parse-unittests

1 file changed

+2
-0
lines changed

lexical-parse-float/etc/correctness/test-parse-unittests/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ struct StrtodTests {
1616
ConversionTests: Vec<ConversionTest>,
1717
}
1818

19+
#[allow(dead_code)]
1920
#[derive(Debug, Deserialize)]
2021
struct FormattingTest {
2122
UID: String,
@@ -24,6 +25,7 @@ struct FormattingTest {
2425
int: String,
2526
}
2627

28+
#[allow(dead_code)]
2729
#[derive(Debug, Deserialize)]
2830
struct ConversionTest {
2931
UID: String,

0 commit comments

Comments
 (0)