Skip to content

Commit

Permalink
Fix camel casing
Browse files Browse the repository at this point in the history
  • Loading branch information
ambiguousname committed Oct 25, 2024
1 parent 17cffa5 commit 2da3912
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tool/src/demo_gen/terminus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ impl<'ctx, 'tcx> RenderTerminusContext<'ctx, 'tcx> {
let attrs_default = attrs.unwrap_or_default();
// This only works for enums, since otherwise we break the type into its component parts.
let label = if attrs_default.input_cfg.label.is_empty() {
heck::AsUpperCamelCase(format!("{}:{}", node.owning_type, param_name.clone())).to_string()
format!("{}:{}", heck::AsUpperCamelCase(node.owning_type.clone()), heck::AsUpperCamelCase(param_name.clone())).to_string()
} else {
attrs_default.input_cfg.label
};
Expand Down

0 comments on commit 2da3912

Please sign in to comment.