-
-
Notifications
You must be signed in to change notification settings - Fork 524
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
DeriveActiveEnum is incompatible with deny(missing_docs) attribute #1472
Comments
Hi there, thank you for your suggestion. This is a common complaint for the linter, so in general you can't put Ideally, the linter should be able to ignore That say, we can sprinkle some |
Thanks for the hint, I was not aware of the rust-lang issue. So as far as I can see, it would also be an option to add If I would want to add these changes, this would affect the |
Yes, but I think changing the macros is more important - you can't workaround that otherwise. A PR would be welcomed. For the codegen, I think it totally depends on your philosophy. IMO you can leave them undocumented. Because it is no better for the cli to generate some stub docs |
Ah, didn't know that codegen is for the cli. That sounds reasonable, leaving models generated by CLI undocumented adds some implicit requirement for the user to document their code. I am happy to add a draft PR as soon as I have a spare minute. |
I added the PR linked above as draft as base for further discussions, if required. |
Released in 0.11.1 |
Description
When using
sea-orm = 0.11
, compilation throws an error when usingDeriveActiveEnum
with#![deny(missing_docs)]
.Steps to Reproduce
Given the following example:
Expected Behavior
The code should compile.
Actual Behavior
cargo check
answers:Reproduces How Often
Happens always.
Versions
The text was updated successfully, but these errors were encountered: