From 6166c2f2e586451283c7379d9ae585ee7a4c45cf Mon Sep 17 00:00:00 2001 From: Dario Curreri Date: Tue, 24 Oct 2023 10:17:53 +0200 Subject: [PATCH] Fix validation --- env-settings-derive/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/env-settings-derive/src/lib.rs b/env-settings-derive/src/lib.rs index 490ebee..8f0e731 100644 --- a/env-settings-derive/src/lib.rs +++ b/env-settings-derive/src/lib.rs @@ -57,7 +57,7 @@ fn implement(input: &utils::input::EnvSettingsInput) -> TokenStream { env_settings_utils::get_env_variables(case_insensitive) }; - let prefix = input.params.prefix.clone().unwrap_or(String::default()); + let prefix = input.params.prefix.clone().unwrap_or_default(); for field in &input.fields { match field {