Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix positional tuple fields in Display impl #20

Merged
merged 2 commits into from
Jun 30, 2024
Merged

Conversation

parasyte
Copy link
Owner

The field names (numeric indices) were not being stripped for tuple variants. This caused errors when attempting to output Display impls which did not reference every sequential index.

This change makes it possible to reference arbitrary tuple fields as intended.

parasyte added 2 commits June 29, 2024 23:15
The field names (numeric indices) were not being stripped for tuple
variants. This caused errors when attempting to output Display impls
which did not reference every sequential index.

This change makes it possible to reference arbitrary tuple fields
as intended.
`fmt::Write` for `String` is infallible. We can safely ignore the
`Result`.
@parasyte parasyte merged commit 2a9a45a into main Jun 30, 2024
14 checks passed
@parasyte parasyte deleted the fix/positional-fields branch June 30, 2024 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant