Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Fix buggy non-nested tuples #48

Merged
merged 4 commits into from
Jul 3, 2020
Merged

Fix buggy non-nested tuples #48

merged 4 commits into from
Jul 3, 2020

Conversation

gakonst
Copy link
Owner

@gakonst gakonst commented Jul 3, 2020

Motivation

#42 introduced nested tuple support. However, when you supply a non-nested tuple, it would encode it as a Token::Tuple(...), when it really should just encode it to a vec![...].

Solution

Flatten the tuples after tokenizing them to a vector

@gakonst gakonst merged commit 3d2d406 into master Jul 3, 2020
@gakonst gakonst deleted the buggy-tuples branch July 3, 2020 14:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant