Skip to content

Commit

Permalink
Removed extra clone from NamedTuple#to_h. Fixes #4203
Browse files Browse the repository at this point in the history
Seems to have been there due to a copy/paste bug.
Ary Borenszweig committed Mar 28, 2017
1 parent 9be7840 commit ab4bed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/named_tuple.cr
Original file line number Diff line number Diff line change
@@ -404,7 +404,7 @@ struct NamedTuple
{% else %}
{
{% for key in T %}
{{key.symbolize}} => self[{{key.symbolize}}].clone,
{{key.symbolize}} => self[{{key.symbolize}}],
{% end %}
}
{% end %}

0 comments on commit ab4bed3

Please sign in to comment.