From ab21e9833679c921c6c6ea4c7943e28e754e9365 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Sat, 12 Jun 2021 23:44:33 +0300 Subject: [PATCH] chore: fix clippy warnings --- itconfig/src/get_env.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/itconfig/src/get_env.rs b/itconfig/src/get_env.rs index 534c188..5cb3307 100644 --- a/itconfig/src/get_env.rs +++ b/itconfig/src/get_env.rs @@ -196,7 +196,7 @@ mod tests { #[test] fn get_missing_env_with_default_value() { let flag: bool = get_env_or_default("TEST_CASE_6", "true"); - assert_eq!(flag, true); + assert!(flag); } #[test] @@ -222,7 +222,7 @@ mod tests { #[test] fn get_missing_env_with_set_default_value() { let flag: bool = get_env_or_set_default("TEST_CASE_10", "true"); - assert_eq!(flag, true); + assert!(flag); let env_var = env::var("TEST_CASE_10"); assert_eq!(env_var, Ok(String::from("true")))