summaryrefslogtreecommitdiffstats
path: root/tests
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
parent34439bd4a508cca344414a88e970cc7c53cabaa0 (diff)
silence/address unused code warnings
Diffstat (limited to 'tests')
-rw-r--r--tests/env.rs6
-rw-r--r--tests/errors.rs2
-rw-r--r--tests/legacy/errors.rs2
3 files changed, 10 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,
}
diff --git a/tests/errors.rs b/tests/errors.rs
index 2b1ebd8..773fa46 100644
--- a/tests/errors.rs
+++ b/tests/errors.rs
@@ -106,11 +106,13 @@ fn test_error_enum_de() {
fn error_with_path() {
#[derive(Debug, Deserialize)]
struct Inner {
+ #[allow(dead_code)]
test: i32,
}
#[derive(Debug, Deserialize)]
struct Outer {
+ #[allow(dead_code)]
inner: Inner,
}
const CFG: &str = r#"
diff --git a/tests/legacy/errors.rs b/tests/legacy/errors.rs
index e2b24bb..885580f 100644
--- a/tests/legacy/errors.rs
+++ b/tests/legacy/errors.rs
@@ -106,11 +106,13 @@ fn test_error_enum_de() {
fn error_with_path() {
#[derive(Debug, Deserialize)]
struct Inner {
+ #[allow(dead_code)]
test: i32,
}
#[derive(Debug, Deserialize)]
struct Outer {
+ #[allow(dead_code)]
inner: Inner,
}
const CFG: &str = r#"