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

Add doc comment to FromRepr #202

Merged
merged 1 commit into from Jan 8, 2022
Merged

Add doc comment to FromRepr #202

merged 1 commit into from Jan 8, 2022

Conversation

ljoonal
Copy link
Contributor

@ljoonal ljoonal commented Jan 7, 2022

Currently when deriving FromRepr for an enum with #![deny(missing_docs)] will cause errors.
This change would simple add a doc comment to the generated from_repr function to avoid the error.
An alternative I considered would be to just add #[allow(missing_docs)].

This will help people who have missing_docs denied.
@Peternator7
Copy link
Owner

LGTM 👍 Thanks for the fix!

@Peternator7 Peternator7 merged commit ced17d4 into Peternator7:master Jan 8, 2022
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.

None yet

2 participants