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 placeholder doc comments to macro-generated enums #2872

Merged
merged 2 commits into from
Aug 26, 2024

Conversation

pyrrho
Copy link
Contributor

@pyrrho pyrrho commented Aug 21, 2024

This removes some yellow squiggles present in workspaces/crates that build with

[workspace.lints.rust]
missing_docs = "warn"`

image

I don't feel that I'm familiar enough with the structure of these enums to suggest real doc comments, so I just tossed in placeholders. Would love to see some more descriptive text replace the TODOs.

Another option for resolving the warnings would be to replace all the placeholders with an #[allow(missing_docs)] attribute added above the two quote!d pub enums on lib.rs:689 and segment.rs:300

@ealmloff ealmloff added documentation Improvements or additions to documentation router Related to the router implementation labels Aug 26, 2024
@ealmloff ealmloff merged commit a575a42 into DioxusLabs:main Aug 26, 2024
15 checks passed
@pyrrho pyrrho deleted the silence-missing-docs-warnings branch August 27, 2024 13:32
@pyrrho
Copy link
Contributor Author

pyrrho commented Aug 27, 2024

Thank you so much for finishing and landing this PR!

pyrrho added a commit to pyrrho/dioxus that referenced this pull request Aug 28, 2024
* Add placeholder doc comments to macro-generate enums

* Add doc comments to generated router parse error enums

---------

Co-authored-by: Evan Almloff <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation router Related to the router implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants