From b4d878c521ef7d79c6941dfe0755b200b431bc7e Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 19 Dec 2024 09:29:08 +0100 Subject: [PATCH] Fix bug I've just created --- micronfig_macros/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/micronfig_macros/src/lib.rs b/micronfig_macros/src/lib.rs index ecd0c64..c7902bd 100644 --- a/micronfig_macros/src/lib.rs +++ b/micronfig_macros/src/lib.rs @@ -169,7 +169,7 @@ pub fn config(input: TokenStream) -> TokenStream { true => quote! {}, false => quote! { let value: String = value - .unwrap_or_else(|_| panic!("Unset configuration variable: {}", #identifier_string)); + .unwrap_or_else(|| panic!("Unset configuration variable: {}", #identifier_string)); }, };