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

Improve packed repr matching and add tests. #1813

Merged
merged 3 commits into from Jun 21, 2020

Conversation

TannerRogalsky
Copy link
Contributor

Further improves the patches related to #1747 which worked well as long as packed was the first attribute in the repr annotation. Now as long as the attribute exists it will behave appropriately.

@ghost
Copy link

ghost commented May 19, 2020

Does this work for repr(packed(2))? Can you add a test for that style too?

@TannerRogalsky
Copy link
Contributor Author

@alvardes It does but in order to validate I added the tests anyway. :)

@ghost
Copy link

ghost commented May 19, 2020

Thanks!

Copy link
Member

@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

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

Thanks!

@dtolnay dtolnay merged commit 7e5701a into serde-rs:master Jun 21, 2020
@dtolnay
Copy link
Member

dtolnay commented Jun 22, 2020

Published in 1.0.114.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants