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 FromMeta for chars #126

Merged
merged 3 commits into from
Apr 8, 2021
Merged

Conversation

okryvyts
Copy link
Contributor

@okryvyts okryvyts commented Apr 7, 2021

Hello

Yesterday I spent all evening figuring out why my proc macro cannot recognize char attributes after I redefined FromMeta::from_char for my newtype. Here is the fix for the issue. I also add FromMeta impl for char as I don't see any reason why darling doesn't support chars out of the box.

Nice lib, btw))

core/src/from_meta.rs Outdated Show resolved Hide resolved
@TedDriggs
Copy link
Owner

Thanks! Glad you are enjoying the library. I'll ship an update with this now.

@TedDriggs TedDriggs merged commit 3b03d92 into TedDriggs:master Apr 8, 2021
@TedDriggs TedDriggs added the bug label Apr 8, 2021
@TedDriggs
Copy link
Owner

v0.12.3 is live with this change.

@okryvyts
Copy link
Contributor Author

okryvyts commented Apr 9, 2021

Nice, thanks

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

Successfully merging this pull request may close these issues.

3 participants