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

feat: copy over #[cfg(...)] into from() impl #14

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

kaspar030
Copy link
Contributor

I gave this a shot and it seems simple. My macro-fu is at best medium, I can't say if this would have any side effects.

Fixes #13.

@kaspar030
Copy link
Contributor Author

I tested this, it works fine for my actual use case, embassy-rs/embassy#2213, allowing me to replace the custom code for this. 👍

@roignpar
Copy link
Owner

roignpar commented Dec 6, 2024

Thank you for the fix!
I fixed the clippy warnings. Could you please rebase?

@roignpar
Copy link
Owner

roignpar commented Dec 6, 2024

I will merge this and add some more changes on top. Some tests and the equivalent fix for merge_fn.

@roignpar roignpar merged commit aab1e8d into roignpar:main Dec 6, 2024
3 of 4 checks passed
@kaspar030 kaspar030 deleted the from_copy_over_cfg branch December 6, 2024 20:04
@kaspar030
Copy link
Contributor Author

Great, thanks!

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.

from breaks when a struct member is feature gated
2 participants