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

Let the classes! macro handle potential trailing comma. #9

Merged
merged 1 commit into from
Dec 15, 2024

Conversation

svieujot
Copy link

No description provided.

Comment on lines +350 to +353
// Same, handling case with a trailing comma
($($exp:expr),+,) => {
::stylance::JoinClasses::join_classes([$($exp.into()),*].as_slice())
};
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of creating a new duplicated case it is possible to add an optional comma at the end of the one above this.

@basro
Copy link
Owner

basro commented Dec 15, 2024

Small feedback: it would have been nicer if you had added tests for your changes as well.
Since it's fairly quick I'll merge your PR as is and implement the review fix plus the test myself, don't worry about it.

Thanks for your contribution!

@basro basro merged commit 33be2b3 into basro:main Dec 15, 2024
1 check passed
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.

2 participants