summaryrefslogtreecommitdiffstats
path: root/tests/env.rs
diff options
context:
space:
mode:
authorDaniel Eades <danieleades@hotmail.com>2021-12-27 11:09:06 +0000
committerDaniel Eades <danieleades@hotmail.com>2021-12-29 12:12:06 +0000
commitf9bf236a4890e293f5c4f074022d671a6a02ae0f (patch)
treefd295c096daa77c2807dff4dff9b76edf01ad4cb /tests/env.rs
parent34439bd4a508cca344414a88e970cc7c53cabaa0 (diff)
silence/address unused code warnings
Diffstat (limited to 'tests/env.rs')
-rw-r--r--tests/env.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/env.rs b/tests/env.rs
index 4dafc46..97503a1 100644
--- a/tests/env.rs
+++ b/tests/env.rs
@@ -199,6 +199,7 @@ fn test_parse_off_int() {
#[derive(Deserialize, Debug)]
struct TestInt {
+ #[allow(dead_code)]
int_val_1: i32,
}
@@ -230,6 +231,7 @@ fn test_parse_off_float() {
#[derive(Deserialize, Debug)]
struct TestFloat {
+ #[allow(dead_code)]
float_val_1: f64,
}
@@ -261,6 +263,7 @@ fn test_parse_off_bool() {
#[derive(Deserialize, Debug)]
struct TestBool {
+ #[allow(dead_code)]
bool_val_1: bool,
}
@@ -292,6 +295,7 @@ fn test_parse_int_fail() {
#[derive(Deserialize, Debug)]
struct TestInt {
+ #[allow(dead_code)]
int_val_2: i32,
}
@@ -323,6 +327,7 @@ fn test_parse_float_fail() {
#[derive(Deserialize, Debug)]
struct TestFloat {
+ #[allow(dead_code)]
float_val_2: f64,
}
@@ -354,6 +359,7 @@ fn test_parse_bool_fail() {
#[derive(Deserialize, Debug)]
struct TestBool {
+ #[allow(dead_code)]
bool_val_2: bool,
}