From 2d9cf27371e7958503ccda9242831a7926f28e6b Mon Sep 17 00:00:00 2001 From: Artem Medvedev Date: Sat, 18 May 2024 22:37:29 +0200 Subject: [PATCH] chore: fix clippy warning without features enabled --- testcontainers/src/core/env/config.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/testcontainers/src/core/env/config.rs b/testcontainers/src/core/env/config.rs index 3e741e9e..a44e0a17 100644 --- a/testcontainers/src/core/env/config.rs +++ b/testcontainers/src/core/env/config.rs @@ -65,10 +65,9 @@ impl Config { where E: GetEnvValue, { - let env_config = Self::load_from_env_config::().await; - #[cfg(feature = "properties-config")] { + let env_config = Self::load_from_env_config::().await; let properties = TestcontainersProperties::load().await.unwrap_or_default(); // Environment variables take precedence over properties @@ -82,7 +81,7 @@ impl Config { } } #[cfg(not(feature = "properties-config"))] - env_config + Self::load_from_env_config::().await } async fn load_from_env_config() -> Self