Skip to content

Commit

Permalink
fix: expect suffix when parsing idents
Browse files Browse the repository at this point in the history
  • Loading branch information
frectonz committed Nov 24, 2024
1 parent ff82f77 commit bb1accb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parenv-derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ pub fn derive_environment(input: TokenStream) -> TokenStream {
let is_option = subty_if_name(&field.ty, "Option");

let ident_uppercase = ident.to_string().to_uppercase();
let ident_uppercase = format!("{prefix}{ident_uppercase}");
let ident_uppercase = format!("{prefix}{ident_uppercase}{suffix}");
let parse_ident = format_ident!("parse_{ident}");

if let Some(inner_typ) = is_option {
Expand Down

0 comments on commit bb1accb

Please sign in to comment.