mirror of
https://github.com/OMGeeky/confique.git
synced 2025-12-31 00:30:18 +01:00
Fix name clash issue of helper deserialize functions
This commit is contained in:
@@ -72,7 +72,8 @@ fn gen_partial_mod(input: &ir::Input) -> TokenStream {
|
||||
let visibility = &input.visibility;
|
||||
|
||||
fn deserialize_fn_name(field_name: &Ident) -> Ident {
|
||||
quote::format_ident!("deserialize_{field_name}")
|
||||
// This has an ugly name to avoid clashing with imported names.
|
||||
quote::format_ident!("__confique_deserialize_{field_name}")
|
||||
}
|
||||
|
||||
// Prepare some tokens per field.
|
||||
|
||||
Reference in New Issue
Block a user