Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Discard trailing punctuation before quoting fields #8

Merged
merged 1 commit into from
Feb 18, 2021

Conversation

Aaron1011
Copy link
Contributor

If the user writes a single-field enum variant with a trailing comma,
then keeping the trailing comma will cause us to quote a single-element
tuple.

If the user writes a single-field enum variant with a trailing comma,
then keeping the trailing comma will cause us to quote a single-element
tuple.
@kdy1
Copy link
Owner

kdy1 commented Feb 18, 2021

Thanks!

@kdy1 kdy1 merged commit 166c6ee into kdy1:master Feb 18, 2021
snejugal added a commit to tbot-rs/tbot that referenced this pull request Jul 4, 2021
Rust 1.53 introduced an intentional breaking change in attribute
handling in macros, and it led to `is-macro` incorrectly generating code
for `errors::HttpsWebhook::Tls`
(investigated in [rust-lang/rust#85692]). A fix for that landed in
`is-macro` 0.1.9 via [kdy1/is-macro#8], so `tbot` needs to require
`is-macro` to be of version `^0.1.9`.

[rust-lang/rust#85692]: rust-lang/rust#85692
[kdy1/is-macro#8]: kdy1/is-macro#8
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