Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Removed extra clone from NamedTuple#to_h. Fixes #4203
Seems to have been there due to a copy/paste bug.
  • Loading branch information
asterite 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
Expand Up @@ -404,7 +404,7 @@ struct NamedTuple
{% else %}
{
{% for key in T %}
{{key.symbolize}} => self[{{key.symbolize}}].clone,
{{key.symbolize}} => self[{{key.symbolize}}],
{% end %}
}
{% end %}
Expand Down

0 comments on commit ab4bed3

Please sign in to comment.