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 Box<dyn FnOnce> trailing comma #113

Merged
merged 1 commit into from
Oct 2, 2022
Merged

Fix Box<dyn FnOnce> trailing comma #113

merged 1 commit into from
Oct 2, 2022

Conversation

chinedufn
Copy link
Owner

This commit fixes an issue where the trailing comma in boxed functions
such as Box<dyn FnOnce() -> (),> would lead to a compile time parsing
error.

rustfmt automatically inserts this trailing comma after the
FnOnce if it has a long signature.

This commit fixes an issue where the trailing comma in boxed functions
such as `Box<dyn FnOnce() -> (),>` would lead to a compile time parsing
error.

rustfmt automatically inserts this trailing comma after the
`FnOnce` if it has a long signature.
@chinedufn chinedufn merged commit 1e2cbf4 into master Oct 2, 2022
@chinedufn chinedufn deleted the fix-trailing-comma branch October 2, 2022 11:15
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