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

fix: use syn::Index for tuple access #515

Merged
merged 2 commits into from
Oct 16, 2021

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Oct 16, 2021

Motivation

fix an issue were an Event is a tuple and format_ident!("{}", idx) would crash the compiler, the right way to construct it is syn::Index::from(idx)

Solution

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog

@mattsse mattsse force-pushed the matt/fix-tuple-access-for-display branch from 2571607 to a897720 Compare October 16, 2021 16:27
@gakonst gakonst merged commit c3528b7 into gakonst:master Oct 16, 2021
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.

2 participants