-
-
Notifications
You must be signed in to change notification settings - Fork 227
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
ref(api): Only allow dead code where needed #2213
Conversation
We added a blanket `allow(dead_code)` for the entire api module in #2096 because of some new clippy lints which were failing. Here, we remove the blanket `allow(dead_code)` and only allow dead code for the specific lines where it occurs. It might not be possible to remove these because serde might rely on their presence.
AFAICT all of these types are only |
Also, if you do want to keep them, it might make sense to use |
@loewenheim let's keep the unused fields in case removing them has some unintended side effects. Keeping them around is lower risk than removing them. I applied your suggestion to use |
I agree, I think in most cases where we used to use |
We added a blanket
allow(dead_code)
for the entire api module in #2096 because of some new clippy lints which were failing.Here, we remove the blanket
allow(dead_code)
and only allow dead code for the specific lines where it occurs. It might not be possible to remove these because serde might rely on their presence.