Skip to content

Commit

Permalink
Fix validation
Browse files Browse the repository at this point in the history
  • Loading branch information
dariocurr committed Oct 24, 2023
1 parent 4e03979 commit 6166c2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion env-settings-derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6166c2f

Please sign in to comment.