Skip to content

Commit

Permalink
Don't Label prefix the inner type of a labeled metric
Browse files Browse the repository at this point in the history
  • Loading branch information
badboy committed Dec 7, 2022
1 parent 4e2b161 commit 1de9e0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glean_parser/rust.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def type_name(obj):
"""

if getattr(obj, "labeled", False):
return "LabeledMetric<Labeled{}>".format(class_name(obj.type))
return "LabeledMetric<{}>".format(class_name(obj.type))
generate_enums = getattr(obj, "_generate_enums", []) # Extra Keys? Reasons?
if len(generate_enums):
for name, suffix in generate_enums:
Expand Down

0 comments on commit 1de9e0f

Please sign in to comment.